Skip to content

Commit

Permalink
fix: Missing await on agent leave action (#29358)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman authored and hugocostadev committed May 30, 2023
1 parent 2d4e32d commit 96a95d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/app/livechat/server/lib/stream/agentStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 96a95d7

Please sign in to comment.