Fixed bug where partial device update from a faulty task gets committed in the next inform.
This commit is contained in:
1 parent
db6eae2aee
commit
4c0c590791
1 file changed
+1
-1
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user