mirror of
https://github.com/strapi/strapi.git
synced 2025-10-04 12:57:11 +00:00
Run the database event if the connection is established
This commit is contained in:
parent
114ac4a30d
commit
b81ba84401
@ -133,12 +133,9 @@ module.exports = (scope, cb) => {
|
|||||||
|
|
||||||
scope.quick = answers.type === 'quick' || scope.quick;
|
scope.quick = answers.type === 'quick' || scope.quick;
|
||||||
const isQuick = scope.quick;
|
const isQuick = scope.quick;
|
||||||
|
|
||||||
if (isQuick) {
|
if (isQuick) {
|
||||||
trackSuccess('didChooseQuickstart', scope);
|
|
||||||
answers.client = databaseChoices[0].value;
|
answers.client = databaseChoices[0].value;
|
||||||
} else {
|
|
||||||
trackSuccess('didChooseCustomDatabase', scope);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasDatabaseConfig) {
|
if (hasDatabaseConfig) {
|
||||||
@ -355,6 +352,12 @@ module.exports = (scope, cb) => {
|
|||||||
console.log(`The app has been connected to the database ${green('successfully')}!`);
|
console.log(`The app has been connected to the database ${green('successfully')}!`);
|
||||||
console.log();
|
console.log();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isQuick) {
|
||||||
|
trackSuccess('didChooseQuickstart', scope);
|
||||||
|
} else {
|
||||||
|
trackSuccess('didChooseCustomDatabase', scope);
|
||||||
|
}
|
||||||
|
|
||||||
trackSuccess('didConnectDatabase', scope);
|
trackSuccess('didConnectDatabase', scope);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user