From 9536a480bb9e7109a72871c7cb3b3ab8b4dfeb1f Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Wed, 26 May 2021 22:43:55 +0100 Subject: [PATCH] Fix up/down command console output when logger replaces it. --- bin/migrate-mongo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/migrate-mongo.js b/bin/migrate-mongo.js index d5727b6..197c467 100755 --- a/bin/migrate-mongo.js +++ b/bin/migrate-mongo.js @@ -70,6 +70,8 @@ program .then(({db, client}) => migrateMongo.up(db, client)) .then(migrated => { printMigrated(migrated); + }) + .then(() => { process.exit(0); }) .catch(err => { @@ -91,6 +93,8 @@ program migrated.forEach(migratedItem => { console.log(`MIGRATED DOWN: ${migratedItem}`); }); + }) + .then(() => { process.exit(0); }) .catch(err => {