summaryrefslogtreecommitdiff
path: root/src/node/db
diff options
context:
space:
mode:
authorStephan Jauernick <info@stephan-jauernick.de>2014-05-31 11:53:44 +0200
committerStephan Jauernick <info@stephan-jauernick.de>2014-05-31 11:53:44 +0200
commitd42a9eb3a62ce1a5cfcd68431162c7b7ea69cd9f (patch)
tree1e5a0796f307f0f21a2c296719e68d6e89e991e3 /src/node/db
parentfffdde0c593106f9d5c383e6103fc68b48e3c75d (diff)
downloadetherpad-lite-d42a9eb3a62ce1a5cfcd68431162c7b7ea69cd9f.zip
Enhanced the Example for the API Method getPadID and make the return value consistent to other functions
Diffstat (limited to 'src/node/db')
-rw-r--r--src/node/db/API.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/db/API.js b/src/node/db/API.js
index f9e4695d..a57b8673 100644
--- a/src/node/db/API.js
+++ b/src/node/db/API.js
@@ -645,7 +645,7 @@ getPadID(roID) returns the padID of a pad based on the readonlyID(roID)
Example returns:
-{code: 0, message:"ok", data: null}
+{code: 0, message:"ok", data: {padID: padID}}
{code: 1, message:"padID does not exist", data: null}
*/
exports.getPadID = function(roID, callback)
@@ -661,7 +661,7 @@ exports.getPadID = function(roID, callback)
}
else
{
- callback(null, {PadID: padID});
+ callback(null, {padID: padID});
}
});
}