From 2185480c4e352a61980030693bbd9073a5612e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 21 Sep 2017 19:25:54 -0400 Subject: [PATCH] switch to eachSeries --- src/privileges/categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/privileges/categories.js b/src/privileges/categories.js index 9c5c9f9f51..69aec85135 100644 --- a/src/privileges/categories.js +++ b/src/privileges/categories.js @@ -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); }