Fix bug in DB fetching of root timestamp

This commit is contained in:
Zaid Abdulla committed 2016-04-20 02:14:01 +03:00
1 parent 7ced8fef3d
commit aee33809b5
1 file changed
+1 -1
+1 -1
View File
@@ -394,7 +394,7 @@ fetchDevice = (id, timestamp, patterns, callback) ->
if kk == '_SerialNumber' if kk == '_SerialNumber'
res.push([['DeviceID', 'SerialNumber'], timestamp, 1, timestamp, 0, timestamp, 0, timestamp, [vv, 'xsd:string']]) res.push([['DeviceID', 'SerialNumber'], timestamp, 1, timestamp, 0, timestamp, 0, timestamp, [vv, 'xsd:string']])
else if common.typeOf(v) is common.OBJECT_TYPE 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) return callback(null, res)
) )