Fixed bug where partial device update from a faulty task gets committed in the next inform.

This commit is contained in:
Zaid Abdulla committed 2014-07-24 03:51:53 +03:00
1 parent db6eae2aee
commit 4c0c590791
1 file changed
+1 -1
+1 -1
View File
@@ -116,7 +116,7 @@ commitUpdates = (deviceId, deviceUpdates, commitQueue, callback) ->
update['$set']["_customCommands.#{commandName}._timestamp"] = now update['$set']["_customCommands.#{commandName}._timestamp"] = now
processBatches = (cb) -> processBatches = (cb) ->
if not commitQueue? if not commitQueue
processBatch(deviceUpdates) if deviceUpdates? processBatch(deviceUpdates) if deviceUpdates?
return cb() return cb()