Skip to content

Commit ec7fc3e

Browse files
lsocrateTom Kirkpatrick
authored andcommitted
fix: ensure callback when no pending migrations (#15)
1 parent f5e025b commit ec7fc3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/models/migration.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ module.exports = function(Migration, options) {
195195
delete Migration.app.migrating;
196196
Migration.emit('complete');
197197
Migration.log.info('No new migrations to run.');
198+
return cb();
198199
}
199200
});
200201

0 commit comments

Comments
 (0)