Fix bug in fetching 1_BOOT event from DB

This commit is contained in:
Zaid Abdulla committed 2017-01-30 07:32:21 -08:00
1 parent cd8d217550
commit 5a5fe0bf19
1 file changed
+1 -1
+1 -1
View File
@@ -272,7 +272,7 @@ fetchDevice = (id, timestamp, patterns, callback) ->
res.push([['Events', 'Inform'], +v,
{object: [+v, 0], writable: [+v, 0], value: [+v, [+v, 'xsd:dateTime']]}])
delete device[k]
when '_lastInform'
when '_lastBoot'
res.push([['Events'], timestamp,
{object: [timestamp, 1], writable: [timestamp, 0]}])
res.push([['Events', '1_BOOT'], +v,