The apps to update are the ones that aren't equal!

This commit is contained in:
Page 2014-04-28 23:22:28 +01:00 committed by Pablo Carranza Vélez
parent 1b74e0cca5
commit b4756db23b

View File

@ -140,7 +140,7 @@ exports.update = ->
console.log("Apps to be updated")
toBeUpdated = _.intersection(remoteImages, localImages)
toBeUpdated = _.filter toBeUpdated, (imageId) ->
return _.isEqual(remoteApps[imageId], apps[imageId])
return !_.isEqual(remoteApps[imageId], apps[imageId])
console.log(toBeUpdated)
# Install the apps and add each to the db as they succeed