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 and sampaiodiego committed Apr 8, 2021
1 parent 5f7037a commit 8a4ae38
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 8a4ae38

Please sign in to comment.