getGroups method to get a range

This commit is contained in:
barisusakli
2015-01-21 23:16:27 -05:00
parent 3ade5da00f
commit f3719df997

View File

@@ -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;