mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
change listGroups output
This commit is contained in:
parent
7869e4b69b
commit
8bff85cdb2
2 changed files with 3 additions and 3 deletions
|
@ -480,7 +480,7 @@ exports.listAllPads = function(callback)
|
||||||
//get all groups
|
//get all groups
|
||||||
groupManager.listGroups(function (err, groups)
|
groupManager.listGroups(function (err, groups)
|
||||||
{
|
{
|
||||||
groups=groups["groups"];
|
groups=groups["groupIDs"];
|
||||||
// if defaultGroup exists add this too, becaus ists not listed in groupManager.listGroups
|
// if defaultGroup exists add this too, becaus ists not listed in groupManager.listGroups
|
||||||
groupManager.doesGroupExist(defaultGroup, function(err, exists)
|
groupManager.doesGroupExist(defaultGroup, function(err, exists)
|
||||||
{
|
{
|
||||||
|
|
|
@ -143,9 +143,9 @@ exports.listGroups = function(callback)
|
||||||
//try to get the groups entry
|
//try to get the groups entry
|
||||||
db.get("groups", function (err, groups)
|
db.get("groups", function (err, groups)
|
||||||
{
|
{
|
||||||
if(groups == null) groups = [];
|
if(groups == null) groups["groups"] = [];
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
callback(null, groups);
|
callback(null, {groupIDs: groups["groups"]});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue