From 8a4ae38830766daaa05989b466f89b4b13ead9f4 Mon Sep 17 00:00:00 2001 From: Renato Becker Date: Wed, 7 Apr 2021 19:09:41 -0300 Subject: [PATCH] Fix queue manager returning outdated room object. (#21485) --- app/livechat/server/lib/QueueManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/livechat/server/lib/QueueManager.js b/app/livechat/server/lib/QueueManager.js index 37a5805f12d8..29a59130853c 100644 --- a/app/livechat/server/lib/QueueManager.js +++ b/app/livechat/server/lib/QueueManager.js @@ -41,7 +41,8 @@ export const QueueManager = { LivechatRooms.updateRoomCount(); await queueInquiry(room, inquiry, agent); - return room; + + return LivechatRooms.findOneById(rid); }, async unarchiveRoom(archivedRoom = {}) {