diff --git a/lib/update-device.coffee b/lib/update-device.coffee index 5c5d9d9..3f5ed41 100644 --- a/lib/update-device.coffee +++ b/lib/update-device.coffee @@ -53,8 +53,8 @@ commitUpdates = (deviceId, deviceUpdates, commitQueue, callback) -> processBatch = (updatesBatch, cb) -> if updatesBatch.informEvents? update['$set']['_lastInform'] = now - update['$set']['_lastBoot'] if '1 BOOT' in updatesBatch.informEvents - update['$set']['_lastBootstrap'] if '0 BOOTSTRAP' in updatesBatch.informEvents + update['$set']['_lastBoot'] = now if '1 BOOT' in updatesBatch.informEvents + update['$set']['_lastBootstrap'] = now if '0 BOOTSTRAP' in updatesBatch.informEvents if updatesBatch.parameterValues? for p in updatesBatch.parameterValues