Skip to content

Commit

Permalink
queue qol
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Oct 18, 2023
1 parent b48d63b commit 119f568
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/meteor/app/livechat/server/lib/QueueManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const queueInquiry = async (inquiry: ILivechatInquiryRecord, defaultAgent
const room = await LivechatRooms.findOneById(inquiry.rid, { projection: { v: 1 } });
if (!room || !(await Omnichannel.isRoomEnabled(room))) {
logger.error({ msg: 'MAC limit reached, not routing inquiry', inquiry });
// We'll queue these inquiries so when new license is applied, they just start rolling again
// Minimizing disruption
await saveQueueInquiry(inquiry);
return;
}
const dbInquiry = await LivechatInquiry.findOneById(inquiry._id);
Expand Down

0 comments on commit 119f568

Please sign in to comment.