Remove unnecessary Promise.all

This commit is contained in:
Pagan Gazzard 2016-10-05 18:31:29 -07:00
parent d165097822
commit 81cb59262f

View File

@ -50,7 +50,6 @@ bootstrap = ->
.return(userConfig) .return(userConfig)
.then (userConfig) -> .then (userConfig) ->
console.log('Finishing bootstrapping') console.log('Finishing bootstrapping')
Promise.all([
knex('config').whereIn('key', ['uuid', 'apiKey', 'username', 'userId', 'version']).delete() knex('config').whereIn('key', ['uuid', 'apiKey', 'username', 'userId', 'version']).delete()
.then -> .then ->
knex('config').insert([ knex('config').insert([
@ -60,7 +59,6 @@ bootstrap = ->
{ key: 'userId', value: userConfig.userId } { key: 'userId', value: userConfig.userId }
{ key: 'version', value: utils.supervisorVersion } { key: 'version', value: utils.supervisorVersion }
]) ])
])
.tap -> .tap ->
bootstrapper.doneBootstrapping() bootstrapper.doneBootstrapping()