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')),
deviceId : traverseXml(xml.get('DeviceId')),
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]
recursive(v, "#{p}.")
else
update['$unset'][p] = 1
update['$unset'][p] = 2
# Scan the DB object and remove parameters that no longer exists in device
for path of projection
@@ -202,7 +202,7 @@ commitUpdates = (deviceId, deviceUpdates, commitQueue, callback) ->
recursive(root, rootPath)
else
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
for k, v of update['$unset']
+1 -1
View File
@@ -1,6 +1,6 @@
{
"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",
"repository": {
"type": "git",