Fix bug when fetching entire device data model

This commit is contained in:
Zaid Abdulla committed 2016-08-29 20:00:32 -07:00
1 parent 41fb97adef
commit 89e78b1335
1 file changed
+1 -1
+1 -1
View File
@@ -429,7 +429,7 @@ fetchDevice = (id, timestamp, patterns, callback) ->
{exist: timestamp, object: timestamp, writable: timestamp, value: timestamp},
{exist: 1, object: 0, writable: 0, value: [vv, 'xsd:boolean']}])
else if common.typeOf(v) is common.OBJECT_TYPE
storeParams(v, [k], +(device['_timestamp'] ? 0), projection == null)
storeParams(v, [k], +(device['_timestamp'] ? 0), Object.keys(projection).length == 0)
return callback(null, res, loaded)
)