summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node/db/API.js2
-rw-r--r--src/node/db/PadManager.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/node/db/API.js b/src/node/db/API.js
index ee12d1d9..9cad415d 100644
--- a/src/node/db/API.js
+++ b/src/node/db/API.js
@@ -46,7 +46,7 @@ exports.createGroupPad = groupManager.createGroupPad;
/**PADLIST FUNCTION****/
/**********************/
-exports.listAllPads = padManager.getPads;
+exports.listAllPads = padManager.listAllPads;
/**********************/
/**AUTHOR FUNCTIONS****/
diff --git a/src/node/db/PadManager.js b/src/node/db/PadManager.js
index 8cd69a83..5e0af464 100644
--- a/src/node/db/PadManager.js
+++ b/src/node/db/PadManager.js
@@ -158,12 +158,12 @@ exports.getPad = function(id, text, callback)
}
}
-exports.getPads = function(callback)
+exports.listAllPads = function(callback)
{
if(callback != null){
- callback(null,padList.getPads());
+ callback(null,{padIDs: padList.getPads()});
}else{
- return padList.getPads();
+ return {padIDs: padList.getPads()};
}
}