add listAllPads API function

This commit is contained in:
aritas1 2012-02-14 19:48:47 +04:00
parent 2466e65212
commit 5f5a909420
5 changed files with 45 additions and 1 deletions

View file

@ -142,6 +142,7 @@ exports.listGroups = function(callback)
//try to get the groups entry
db.get("groups", function (err, groups)
{
if(groups == null) groups = [];
if(ERR(err, callback)) return;
callback(null, groups);
});