Skip to content

Commit

Permalink
Fix up/down command console output when logger replaces it.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed May 26, 2021
1 parent 4906ff2 commit 9536a48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/migrate-mongo.js
Expand Up @@ -70,6 +70,8 @@ program
.then(({db, client}) => migrateMongo.up(db, client))
.then(migrated => {
printMigrated(migrated);
})
.then(() => {
process.exit(0);
})
.catch(err => {
Expand All @@ -91,6 +93,8 @@ program
migrated.forEach(migratedItem => {
console.log(`MIGRATED DOWN: ${migratedItem}`);
});
})
.then(() => {
process.exit(0);
})
.catch(err => {
Expand Down

0 comments on commit 9536a48

Please sign in to comment.