mirror of
https://github.com/strapi/strapi.git
synced 2025-10-04 04:42:47 +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;
|
||||
const isQuick = scope.quick;
|
||||
|
||||
|
||||
if (isQuick) {
|
||||
trackSuccess('didChooseQuickstart', scope);
|
||||
answers.client = databaseChoices[0].value;
|
||||
} else {
|
||||
trackSuccess('didChooseCustomDatabase', scope);
|
||||
}
|
||||
|
||||
if (hasDatabaseConfig) {
|
||||
@ -355,6 +352,12 @@ module.exports = (scope, cb) => {
|
||||
console.log(`The app has been connected to the database ${green('successfully')}!`);
|
||||
console.log();
|
||||
}
|
||||
|
||||
if (isQuick) {
|
||||
trackSuccess('didChooseQuickstart', scope);
|
||||
} else {
|
||||
trackSuccess('didChooseCustomDatabase', scope);
|
||||
}
|
||||
|
||||
trackSuccess('didConnectDatabase', scope);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user