mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
more refactors
This commit is contained in:
@@ -240,7 +240,7 @@ module.exports = function(Groups) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
user.getMultipleUserFields(uids, ['uid', 'username', 'picture', 'userslug'], next);
|
||||
user.getUsersFields(uids, ['uid', 'username', 'picture', 'userslug'], next);
|
||||
});
|
||||
}, callback);
|
||||
};
|
||||
|
||||
@@ -77,7 +77,7 @@ module.exports = function(Groups) {
|
||||
Groups.getMembers(data.groupName, 0, -1, next);
|
||||
},
|
||||
function(members, next) {
|
||||
user.getMultipleUserFields(members, ['uid'].concat([searchBy]), next);
|
||||
user.getUsersFields(members, ['uid'].concat([searchBy]), next);
|
||||
},
|
||||
function(users, next) {
|
||||
var uids = [];
|
||||
|
||||
Reference in New Issue
Block a user