GetParameterNames task now deletes objects that no longer exist from DB

This commit is contained in:
Zaid Abdulla committed 2013-07-22 14:30:11 +03:00
1 parent 754b2d784f
commit 9f83c29a93
2 files changed
+50 -15

No files matched your search

+1 -1
View File
@@ -94,7 +94,7 @@ updateDevice = (currentRequest, actions, callback) ->
updates["#{path}_object"] = true
else
path = "#{p[0]}."
updates["#{path}_writable"] = p[1]
updates["#{path}_writable"] = p[1] if p[1]?
updates["#{path}_timestamp"] = now
if Object.keys(updates).length > 0 or Object.keys(deletes).length > 0