getGroups method to get a range

v1.18.x
barisusakli 10 years ago
parent 3ade5da00f
commit f3719df997

@ -90,6 +90,10 @@ var async = require('async'),
}); });
}; };
Groups.getGroups = function(start, end, callback) {
db.getSortedSetRevRange('groups:createtime', start, end, callback);
};
Groups.get = function(groupName, options, callback) { Groups.get = function(groupName, options, callback) {
var truncated = false, var truncated = false,
numUsers; numUsers;

Loading…
Cancel
Save