Fix bug preventing saving of boot and bootstrap timestamps

This commit is contained in:
Zaid Abdulla committed 2016-01-06 22:42:19 +03:00
1 parent 3eb89e5dc6
commit fe8e782e9f
1 file changed
+2 -2
+2 -2
View File
@@ -53,8 +53,8 @@ commitUpdates = (deviceId, deviceUpdates, commitQueue, callback) ->
processBatch = (updatesBatch, cb) -> processBatch = (updatesBatch, cb) ->
if updatesBatch.informEvents? if updatesBatch.informEvents?
update['$set']['_lastInform'] = now update['$set']['_lastInform'] = now
update['$set']['_lastBoot'] if '1 BOOT' in updatesBatch.informEvents update['$set']['_lastBoot'] = now if '1 BOOT' in updatesBatch.informEvents
update['$set']['_lastBootstrap'] if '0 BOOTSTRAP' in updatesBatch.informEvents update['$set']['_lastBootstrap'] = now if '0 BOOTSTRAP' in updatesBatch.informEvents
if updatesBatch.parameterValues? if updatesBatch.parameterValues?
for p in updatesBatch.parameterValues for p in updatesBatch.parameterValues