new group members route

getMembers can take start end
ability to specify how many group members to return
This commit is contained in:
barisusakli
2015-01-29 13:37:45 -05:00
parent a1c8902b4e
commit 57453f33ab
5 changed files with 36 additions and 10 deletions

View File

@@ -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, []);
}