From e341b80d937a1c15bb5e96d509e5ecbec9660995 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 6 Aug 2015 16:25:36 -0400 Subject: [PATCH] use set to get groups --- src/groups.js | 4 ++-- src/privileges/categories.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/groups.js b/src/groups.js index 4a0d2a563e..f0f7efe066 100644 --- a/src/groups.js +++ b/src/groups.js @@ -105,8 +105,8 @@ var async = require('async'), } }; - Groups.getGroups = function(start, stop, callback) { - db.getSortedSetRevRange('groups:createtime', start, stop, callback); + Groups.getGroups = function(set, start, stop, callback) { + db.getSortedSetRevRange(set, start, stop, callback); }; Groups.get = function(groupName, options, callback) { diff --git a/src/privileges/categories.js b/src/privileges/categories.js index 4572de2e92..feb3c53bc6 100644 --- a/src/privileges/categories.js +++ b/src/privileges/categories.js @@ -92,7 +92,7 @@ module.exports = function(privileges) { }), next); }, function(memberSets, next) { - groups.getGroups(0, -1, function(err, groupNames) { + groups.getGroups('groups:createtime', 0, -1, function(err, groupNames) { if (err) { return next(err); }