mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-15 22:52:12 +02:00
switch to eachSeries
This commit is contained in:
@@ -307,7 +307,7 @@ module.exports = function (privileges) {
|
||||
};
|
||||
|
||||
function giveOrRescind(method, privileges, cid, groupName, callback) {
|
||||
async.each(privileges, function (privilege, next) {
|
||||
async.eachSeries(privileges, function (privilege, next) {
|
||||
method('cid:' + cid + ':privileges:groups:' + privilege, groupName, next);
|
||||
}, callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user