Skip to content

Commit

Permalink
Update Helper.js (#17700)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker authored May 20, 2020
1 parent a517991 commit 7d6b9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/app/livechat-enterprise/server/lib/Helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 7d6b9a8

Please sign in to comment.