diff --git a/src/groups.js b/src/groups.js index 0dcb9379a8..fbb138dce5 100644 --- a/src/groups.js +++ b/src/groups.js @@ -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;