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
@ -135,10 +135,7 @@ module.exports = (scope, cb) => {
|
||||
const isQuick = scope.quick;
|
||||
|
||||
if (isQuick) {
|
||||
trackSuccess('didChooseQuickstart', scope);
|
||||
answers.client = databaseChoices[0].value;
|
||||
} else {
|
||||
trackSuccess('didChooseCustomDatabase', scope);
|
||||
}
|
||||
|
||||
if (hasDatabaseConfig) {
|
||||
@ -356,6 +353,12 @@ module.exports = (scope, cb) => {
|
||||
console.log();
|
||||
}
|
||||
|
||||
if (isQuick) {
|
||||
trackSuccess('didChooseQuickstart', scope);
|
||||
} else {
|
||||
trackSuccess('didChooseCustomDatabase', scope);
|
||||
}
|
||||
|
||||
trackSuccess('didConnectDatabase', scope);
|
||||
|
||||
cb.success();
|
||||
|
Loading…
x
Reference in New Issue
Block a user