mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-20 17:52:51 +00:00
Get the app object from the local apps - that's the only place it exists!
This commit is contained in:
parent
5482b9208d
commit
b47e8a18dd
@ -154,7 +154,7 @@ exports.update = ->
|
|||||||
knex('app').update(app).where(imageId: app.imageId)
|
knex('app').update(app).where(imageId: app.imageId)
|
||||||
# And delete all the ones to remove in one go
|
# And delete all the ones to remove in one go
|
||||||
promises.push(
|
promises.push(
|
||||||
Promise.map(toBeRemoved, (imageId) -> kill(remoteApps[imageId]))
|
Promise.map(toBeRemoved, (imageId) -> kill(apps[imageId]))
|
||||||
.then ->
|
.then ->
|
||||||
knex('app').whereIn('imageId', toBeRemoved).delete()
|
knex('app').whereIn('imageId', toBeRemoved).delete()
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user