Skip to content
Snippets Groups Projects
Unverified Commit 529e85d1 authored by Kevin Aleman's avatar Kevin Aleman Committed by GitHub
Browse files

fix: Missing await on agent leave action (#29358)

parent e1fda192
No related branches found
No related tags found
No related merge requests found
...@@ -67,11 +67,11 @@ export const onlineAgents = { ...@@ -67,11 +67,11 @@ export const onlineAgents = {
try { try {
if (action === 'close') { if (action === 'close') {
return Livechat.closeOpenChats(userId, comment); return await Livechat.closeOpenChats(userId, comment);
} }
if (action === 'forward') { if (action === 'forward') {
return Livechat.forwardOpenChats(userId); return await Livechat.forwardOpenChats(userId);
} }
} catch (e) { } catch (e) {
logger.error({ logger.error({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment