From 96a95d76eaed7e76e4bb47d642511d9ada775227 Mon Sep 17 00:00:00 2001 From: Kevin Aleman Date: Thu, 25 May 2023 10:40:44 -0600 Subject: [PATCH] fix: Missing await on agent leave action (#29358) --- apps/meteor/app/livechat/server/lib/stream/agentStatus.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/app/livechat/server/lib/stream/agentStatus.ts b/apps/meteor/app/livechat/server/lib/stream/agentStatus.ts index 00fa1f6875574..dc105ef1a00e2 100644 --- a/apps/meteor/app/livechat/server/lib/stream/agentStatus.ts +++ b/apps/meteor/app/livechat/server/lib/stream/agentStatus.ts @@ -67,11 +67,11 @@ export const onlineAgents = { try { if (action === 'close') { - return Livechat.closeOpenChats(userId, comment); + return await Livechat.closeOpenChats(userId, comment); } if (action === 'forward') { - return Livechat.forwardOpenChats(userId); + return await Livechat.forwardOpenChats(userId); } } catch (e) { logger.error({