|
|
@ -284,14 +284,11 @@ module.exports = function (Groups) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Groups.isMemberOfGroupsList = function (uid, groupListKeys, callback) {
|
|
|
|
Groups.isMemberOfGroupsList = function (uid, groupListKeys, callback) {
|
|
|
|
var sets = groupListKeys.map(function (groupName) {
|
|
|
|
|
|
|
|
return 'group:' + groupName + ':members';
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var uniqueGroups;
|
|
|
|
var uniqueGroups;
|
|
|
|
var members;
|
|
|
|
var members;
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
|
|
|
|
const sets = groupListKeys.map(groupName => 'group:' + groupName + ':members');
|
|
|
|
db.getSortedSetsMembers(sets, next);
|
|
|
|
db.getSortedSetsMembers(sets, next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (_members, next) {
|
|
|
|
function (_members, next) {
|
|
|
|