diff --git a/apps/meteor/app/livechat/server/hooks/sendToCRM.ts b/apps/meteor/app/livechat/server/hooks/sendToCRM.ts index a172d53440cf..24e1d685a0e6 100644 --- a/apps/meteor/app/livechat/server/hooks/sendToCRM.ts +++ b/apps/meteor/app/livechat/server/hooks/sendToCRM.ts @@ -185,13 +185,6 @@ callbacks.add( return inquiry; } - // const { rid } = inquiry; - // const room = await LivechatRooms.findOneById(rid); - - // if (!room) { - // return inquiry; - // } - return sendToCRM('LivechatSessionTaken', room); }, callbacks.priority.MEDIUM, diff --git a/apps/meteor/ee/app/livechat-enterprise/server/hooks/scheduleAutoTransfer.ts b/apps/meteor/ee/app/livechat-enterprise/server/hooks/scheduleAutoTransfer.ts index 2af34aabf879..fdf980c311ab 100644 --- a/apps/meteor/ee/app/livechat-enterprise/server/hooks/scheduleAutoTransfer.ts +++ b/apps/meteor/ee/app/livechat-enterprise/server/hooks/scheduleAutoTransfer.ts @@ -86,11 +86,6 @@ settings.watch('Livechat_auto_transfer_chat_timeout', (value) => { return; } - // const room = await LivechatRooms.findOneById(rid, { projection: { _id: 1, autoTransferredAt: 1, autoTransferOngoing: 1 } }); - // if (!room) { - // return inquiry; - // } - if (room.autoTransferredAt || room.autoTransferOngoing) { return inquiry; }