From 81cb59262fb56bd3bd58bfbc608bd9ee415f75cf Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Wed, 5 Oct 2016 18:31:29 -0700 Subject: [PATCH] Remove unnecessary Promise.all --- src/bootstrap.coffee | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/bootstrap.coffee b/src/bootstrap.coffee index 26507e3f..40a7f761 100644 --- a/src/bootstrap.coffee +++ b/src/bootstrap.coffee @@ -50,17 +50,15 @@ bootstrap = -> .return(userConfig) .then (userConfig) -> console.log('Finishing bootstrapping') - Promise.all([ - knex('config').whereIn('key', ['uuid', 'apiKey', 'username', 'userId', 'version']).delete() - .then -> - knex('config').insert([ - { key: 'uuid', value: userConfig.uuid } - { key: 'apiKey', value: userConfig.apiKey } - { key: 'username', value: userConfig.username } - { key: 'userId', value: userConfig.userId } - { key: 'version', value: utils.supervisorVersion } - ]) - ]) + knex('config').whereIn('key', ['uuid', 'apiKey', 'username', 'userId', 'version']).delete() + .then -> + knex('config').insert([ + { key: 'uuid', value: userConfig.uuid } + { key: 'apiKey', value: userConfig.apiKey } + { key: 'username', value: userConfig.username } + { key: 'userId', value: userConfig.userId } + { key: 'version', value: utils.supervisorVersion } + ]) .tap -> bootstrapper.doneBootstrapping()