Skip to content

Commit

Permalink
Fix queue manager returning outdated room object. (#21485)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker authored Apr 7, 2021
1 parent ed7dbe6 commit 48d060a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/livechat/server/lib/QueueManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export const QueueManager = {
LivechatRooms.updateRoomCount();

await queueInquiry(room, inquiry, agent);
return room;

return LivechatRooms.findOneById(rid);
},

async unarchiveRoom(archivedRoom = {}) {
Expand Down

0 comments on commit 48d060a

Please sign in to comment.