mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-18 17:00:25 +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)
|
||||
# And delete all the ones to remove in one go
|
||||
promises.push(
|
||||
Promise.map(toBeRemoved, (imageId) -> kill(remoteApps[imageId]))
|
||||
Promise.map(toBeRemoved, (imageId) -> kill(apps[imageId]))
|
||||
.then ->
|
||||
knex('app').whereIn('imageId', toBeRemoved).delete()
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user