Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Jul 10, 2024
1 parent f13485a commit 0310945
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions apps/meteor/app/livechat/server/hooks/sendToCRM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0310945

Please sign in to comment.