From 7d6b9a86c3f920b331373d7d84fa674b17ab9525 Mon Sep 17 00:00:00 2001 From: Renato Becker Date: Wed, 20 May 2020 12:59:16 -0300 Subject: [PATCH] Update Helper.js (#17700) --- ee/app/livechat-enterprise/server/lib/Helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/app/livechat-enterprise/server/lib/Helper.js b/ee/app/livechat-enterprise/server/lib/Helper.js index 00964271e230..d3c525e85066 100644 --- a/ee/app/livechat-enterprise/server/lib/Helper.js +++ b/ee/app/livechat-enterprise/server/lib/Helper.js @@ -128,7 +128,7 @@ export const checkWaitingQueue = async (department) => { return processWaitingQueue(); } - return Promise.all(departments.forEach((department) => processWaitingQueue(department))); + return Promise.all(departments.map(async (department) => processWaitingQueue(department))); }; export const allowAgentSkipQueue = (agent) => {