mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-06 10:58:14 +00:00
Remove unnecessary Promise.all
This commit is contained in:
parent
d165097822
commit
81cb59262f
@ -50,17 +50,15 @@ 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([
|
{ key: 'uuid', value: userConfig.uuid }
|
||||||
{ key: 'uuid', value: userConfig.uuid }
|
{ key: 'apiKey', value: userConfig.apiKey }
|
||||||
{ key: 'apiKey', value: userConfig.apiKey }
|
{ key: 'username', value: userConfig.username }
|
||||||
{ key: 'username', value: userConfig.username }
|
{ 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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user