summaryrefslogtreecommitdiff
path: root/src/node/db
diff options
context:
space:
mode:
authorStephan Jauernick <info@stephan-jauernick.de>2014-06-01 21:19:15 +0200
committerStephan Jauernick <info@stephan-jauernick.de>2014-06-01 21:19:15 +0200
commit412bdd185756d90b3c3da8d4d465f618b397bbc2 (patch)
treed6e6e98b35b7a8784ca50455a59991c1c8f3efd8 /src/node/db
parentd42a9eb3a62ce1a5cfcd68431162c7b7ea69cd9f (diff)
downloadetherpad-lite-412bdd185756d90b3c3da8d4d465f618b397bbc2.zip
Renamed the variable to prevent possible problems.
Diffstat (limited to 'src/node/db')
-rw-r--r--src/node/db/API.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node/db/API.js b/src/node/db/API.js
index a57b8673..4a912368 100644
--- a/src/node/db/API.js
+++ b/src/node/db/API.js
@@ -651,17 +651,17 @@ Example returns:
exports.getPadID = function(roID, callback)
{
//get the PadId
- readOnlyManager.getPadId(roID, function(err, padID)
+ readOnlyManager.getPadId(roID, function(err, retrievedPadID)
{
if(ERR(err, callback)) return;
- if(padID == null)
+ if(retrievedPadID == null)
{
callback(new customError("padID does not exist","apierror"));
}
else
{
- callback(null, {padID: padID});
+ callback(null, {padID: retrievedPadID});
}
});
}