mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
fix option to migrator
This commit is contained in:
parent
bb4cf30d22
commit
6cdb905cae
@ -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