Fix bug in fetching 1_BOOT event from DB
This commit is contained in:
1 parent
cd8d217550
commit
5a5fe0bf19
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user