This commit is contained in:
Baris Usakli
2019-01-04 13:27:31 -05:00
parent 0263b4daec
commit 7809ba2800
5 changed files with 124 additions and 38 deletions

View File

@@ -134,9 +134,7 @@ module.exports = function (Groups) {
};
Groups.getMembersOfGroups = function (groupNames, callback) {
db.getSortedSetsMembers(groupNames.map(function (name) {
return 'group:' + name + ':members';
}), callback);
db.getSortedSetsMembers(groupNames.map(name => 'group:' + name + ':members'), callback);
};
Groups.isMember = function (uid, groupName, callback) {