mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
add listAllPads API function
This commit is contained in:
parent
2466e65212
commit
5f5a909420
5 changed files with 45 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue