Merge pull request #1375 from jhollinger/develop

listAllPads should return an object, not an arraay. issue #1374
This commit is contained in:
John McLear 2013-01-18 08:42:25 -08:00
commit 74c86da0ae
2 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ exports.createGroupPad = groupManager.createGroupPad;
/**PADLIST FUNCTION****/
/**********************/
exports.listAllPads = padManager.getPads;
exports.listAllPads = padManager.listAllPads;
/**********************/
/**AUTHOR FUNCTIONS****/

View file

@ -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()};
}
}