diff --git a/src/node/db/API.js b/src/node/db/API.js index ee12d1d98..9cad415d0 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 8cd69a83e..5e0af4643 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()}; } } diff --git a/src/package.json b/src/package.json index 81e6ff164..449694ed7 100644 --- a/src/package.json +++ b/src/package.json @@ -16,7 +16,7 @@ "require-kernel" : "1.0.5", "resolve" : "0.2.x", "socket.io" : "0.9.x", - "ueberDB" : "0.1.x", + "ueberDB" : "0.1.9", "async" : "0.1.x", "express" : "3.x", "connect" : "2.4.x", diff --git a/src/templates/pad.html b/src/templates/pad.html index a4de8ed8f..274a3b1a0 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -153,6 +153,7 @@