mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
use set to get groups
This commit is contained in:
@@ -105,8 +105,8 @@ var async = require('async'),
|
||||
}
|
||||
};
|
||||
|
||||
Groups.getGroups = function(start, stop, callback) {
|
||||
db.getSortedSetRevRange('groups:createtime', start, stop, callback);
|
||||
Groups.getGroups = function(set, start, stop, callback) {
|
||||
db.getSortedSetRevRange(set, start, stop, callback);
|
||||
};
|
||||
|
||||
Groups.get = function(groupName, options, callback) {
|
||||
|
||||
@@ -92,7 +92,7 @@ module.exports = function(privileges) {
|
||||
}), next);
|
||||
},
|
||||
function(memberSets, next) {
|
||||
groups.getGroups(0, -1, function(err, groupNames) {
|
||||
groups.getGroups('groups:createtime', 0, -1, function(err, groupNames) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user