From aee33809b516c22918c57ecfa287bff705014abf Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Wed, 20 Apr 2016 02:14:01 +0300 Subject: [PATCH] Fix bug in DB fetching of root timestamp --- lib/db.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.coffee b/lib/db.coffee index 0b4b982..9d0f887 100644 --- a/lib/db.coffee +++ b/lib/db.coffee @@ -394,7 +394,7 @@ fetchDevice = (id, timestamp, patterns, callback) -> if kk == '_SerialNumber' res.push([['DeviceID', 'SerialNumber'], timestamp, 1, timestamp, 0, timestamp, 0, timestamp, [vv, 'xsd:string']]) else if common.typeOf(v) is common.OBJECT_TYPE - storeParams(v, [k], 0, projection == null) + storeParams(v, [k], device['_timestamp'] ? 0, projection == null) return callback(null, res) )