mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 10:01:55 +00:00
Bugfix. .then() expects a function
This commit is contained in:
parent
117251bbc1
commit
94395c7e12
@ -58,7 +58,8 @@ module.exports = (uuid) ->
|
||||
).then(->
|
||||
console.log('Finishing bootstrapping')
|
||||
Promise.all([
|
||||
knex('config').truncate().then(config).then((config) ->
|
||||
knex('config').truncate().then(->
|
||||
config.then((config) ->
|
||||
knex('config').insert([
|
||||
{key: 'uuid', value: uuid}
|
||||
{key: 'apiKey', value: config.apiKey}
|
||||
@ -66,6 +67,7 @@ module.exports = (uuid) ->
|
||||
{key: 'userId', value: config.userId}
|
||||
])
|
||||
)
|
||||
)
|
||||
knex('app').truncate()
|
||||
])
|
||||
).catch((error) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user