mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
new group members route
getMembers can take start end ability to specify how many group members to return
This commit is contained in:
@@ -130,7 +130,7 @@ var async = require('async'),
|
||||
};
|
||||
|
||||
Categories.getModerators = function(cid, callback) {
|
||||
Groups.getMembers('cid:' + cid + ':privileges:mods', function(err, uids) {
|
||||
Groups.getMembers('cid:' + cid + ':privileges:mods', 0, -1, function(err, uids) {
|
||||
if (err || !Array.isArray(uids) || !uids.length) {
|
||||
return callback(err, []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user