From d42a9eb3a62ce1a5cfcd68431162c7b7ea69cd9f Mon Sep 17 00:00:00 2001 From: Stephan Jauernick Date: Sat, 31 May 2014 11:53:44 +0200 Subject: [PATCH] Enhanced the Example for the API Method getPadID and make the return value consistent to other functions --- src/node/db/API.js | 4 ++-- 1 file 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}); } }); }