From ef72762ba7c40c7c358b0d94b20d7a30f95b5835 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 18 Jan 2017 20:21:13 +0300 Subject: [PATCH] use groups.isMemberOfGroups --- src/groups.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/groups.js b/src/groups.js index 51c1d97dc8..15b42b368b 100644 --- a/src/groups.js +++ b/src/groups.js @@ -432,12 +432,8 @@ var utils = require('../public/src/utils'); db.getSortedSetRevRange(set, 0, -1, next); }, function (groupNames, next) { - var groupSets = groupNames.map(function (name) { - return 'group:' + name + ':members'; - }); - async.map(uids, function (uid, next) { - db.isMemberOfSortedSets(groupSets, uid, function (err, isMembers) { + Groups.isMemberOfGroups(uid, groupNames, function (err, isMembers) { if (err) { return next(err); }