mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix option to migrator
This commit is contained in:
parent
067b93abfd
commit
eff8e321f6
@ -36,9 +36,10 @@ function start (opts) {
|
||||
throw new Error('You must either pass databaseUri option or set environemnt variable DATABASE_URL');
|
||||
}
|
||||
|
||||
return migrator(options.databaseUri)
|
||||
return migrator({ databaseUri: options.databaseUri })
|
||||
.catch(err => logger.error('failed to migrate db', err))
|
||||
.then(() => createApp(options))
|
||||
.catch(err => logger.error('failed to migrate db', err));
|
||||
.catch(err => logger.error('failed creating app', err));
|
||||
}
|
||||
|
||||
process.on('uncaughtException', err => {
|
||||
|
Loading…
Reference in New Issue
Block a user