use set to get groups

v1.18.x
barisusakli 10 years ago
parent e60194292f
commit e341b80d93

@ -105,8 +105,8 @@ var async = require('async'),
} }
}; };
Groups.getGroups = function(start, stop, callback) { Groups.getGroups = function(set, start, stop, callback) {
db.getSortedSetRevRange('groups:createtime', start, stop, callback); db.getSortedSetRevRange(set, start, stop, callback);
}; };
Groups.get = function(groupName, options, callback) { Groups.get = function(groupName, options, callback) {

@ -92,7 +92,7 @@ module.exports = function(privileges) {
}), next); }), next);
}, },
function(memberSets, next) { function(memberSets, next) {
groups.getGroups(0, -1, function(err, groupNames) { groups.getGroups('groups:createtime', 0, -1, function(err, groupNames) {
if (err) { if (err) {
return next(err); return next(err);
} }

Loading…
Cancel
Save