Compare commits

...
4 Commits
3 changed files with 4 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -232,7 +232,7 @@ acsInform = (xml) ->
parameterList : parameterValueList(xml.get('ParameterList')), parameterList : parameterValueList(xml.get('ParameterList')),
deviceId : traverseXml(xml.get('DeviceId')), deviceId : traverseXml(xml.get('DeviceId')),
event : event(xml.get('Event')), event : event(xml.get('Event')),
retryCount : JSON.parse(xml.get('RetryCount').text()) retryCount : parseInt(xml.get('RetryCount').text())
} }
+2 -2
View File
@@ -187,7 +187,7 @@ commitUpdates = (deviceId, deviceUpdates, commitQueue, callback) ->
if presentPaths[p] if presentPaths[p]
recursive(v, "#{p}.") recursive(v, "#{p}.")
else else
update['$unset'][p] = 1 update['$unset'][p] = 2
# Scan the DB object and remove parameters that no longer exists in device # Scan the DB object and remove parameters that no longer exists in device
for path of projection for path of projection
@@ -202,7 +202,7 @@ commitUpdates = (deviceId, deviceUpdates, commitQueue, callback) ->
recursive(root, rootPath) recursive(root, rootPath)
else else
if not presentPaths[rootPath.slice(0, -1)]? if not presentPaths[rootPath.slice(0, -1)]?
update['$unset'][rootPath.slice(0, -1)] = 1 update['$unset'][rootPath.slice(0, -1)] = 2
# Remove unnecessary unset updates # Remove unnecessary unset updates
for k, v of update['$unset'] for k, v of update['$unset']
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "genieacs", "name": "genieacs",
"version": "1.0.0", "version": "1.0.1",
"description": "A blazing fast TR-069 auto configuration server (ACS) built with Node.js, Redis, and MongoDB", "description": "A blazing fast TR-069 auto configuration server (ACS) built with Node.js, Redis, and MongoDB",
"repository": { "repository": {
"type": "git", "type": "git",