diff --git a/apps/meteor/app/livechat/server/lib/stream/agentStatus.ts b/apps/meteor/app/livechat/server/lib/stream/agentStatus.ts index 00fa1f687557..dc105ef1a00e 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({