mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
getGroups method to get a range
This commit is contained in:
@@ -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) {
|
||||
var truncated = false,
|
||||
numUsers;
|
||||
|
||||
Reference in New Issue
Block a user