From f3719df9972bf1cf378a475aeed7a35bc01a2284 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 21 Jan 2015 23:16:27 -0500 Subject: [PATCH] getGroups method to get a range --- src/groups.js | 4 ++++ 1 file changed, 4 insertions(+) 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;