Fix bug when deleting tags from script

This commit is contained in:
Zaid Abdulla committed 2017-08-22 16:07:04 -07:00
1 parent 9cb623c096
commit 4b17c3c9c3
1 file changed
+1 -1
+1 -1
View File
@@ -705,7 +705,7 @@ rpcRequest = (sessionContext, _declarations, callback) ->
if v and not c? if v and not c?
toClear = device.set(sessionContext.deviceData, p, timestamp, {object: [timestamp, false], writable: [timestamp, true], value: [timestamp, [true, 'xsd:boolean']]}, toClear) toClear = device.set(sessionContext.deviceData, p, timestamp, {object: [timestamp, false], writable: [timestamp, true], value: [timestamp, [true, 'xsd:boolean']]}, toClear)
else if c? and not v else if c? and not v
toClear = device.set(sessionContext.deviceData, p, timestamp, toClear) toClear = device.set(sessionContext.deviceData, p, timestamp, null, toClear)
) )
# Downloads # Downloads