From 5a5fe0bf1997c322add9985a378cae2d6ea88ff3 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 30 Jan 2017 07:32:21 -0800 Subject: [PATCH] Fix bug in fetching 1_BOOT event from DB --- lib/db.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.coffee b/lib/db.coffee index 9b20060..c84a6ca 100644 --- a/lib/db.coffee +++ b/lib/db.coffee @@ -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,