Get the app object from the local apps - that's the only place it exists!

This commit is contained in:
Page 2014-04-26 03:31:21 +01:00 committed by Pablo Carranza Vélez
parent 5482b9208d
commit b47e8a18dd

View File

@ -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()
)