Run the database event if the connection is established

This commit is contained in:
Aurélien Georget 2019-03-27 18:55:18 +01:00
parent 114ac4a30d
commit b81ba84401

View File

@ -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);