switch to eachSeries

v1.18.x
Barış Soner Uşaklı 7 years ago
parent c49837143c
commit 2185480c4e

@ -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);
}

Loading…
Cancel
Save