From bc5c95ca141b6f00a1a9d51adf6b87509e4cb8c3 Mon Sep 17 00:00:00 2001 From: Disha Date: Thu, 14 Sep 2023 11:09:02 +0530 Subject: [PATCH] made db call changes in transferChatAfterVerificationProcess function --- apps/meteor/app/livechat/server/lib/Helper.ts | 5 ++++- .../server/services/omnichannel-verification/service.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/meteor/app/livechat/server/lib/Helper.ts b/apps/meteor/app/livechat/server/lib/Helper.ts index 2c43db0ba87a..8d0b7f4e4f01 100644 --- a/apps/meteor/app/livechat/server/lib/Helper.ts +++ b/apps/meteor/app/livechat/server/lib/Helper.ts @@ -401,7 +401,10 @@ export const dispatchInquiryQueued = async (inquiry: ILivechatInquiryRecord, age } }; -export const forwardRoomToAgent = async (room: IOmnichannelRoom, transferData: TransferData) => { +export const forwardRoomToAgent = async ( + room: Pick, + transferData: TransferData, +) => { if (!room?.open) { return false; } diff --git a/apps/meteor/server/services/omnichannel-verification/service.ts b/apps/meteor/server/services/omnichannel-verification/service.ts index 80faad71827c..96ea78d14054 100644 --- a/apps/meteor/server/services/omnichannel-verification/service.ts +++ b/apps/meteor/server/services/omnichannel-verification/service.ts @@ -325,7 +325,7 @@ export class OmnichannelVerification extends ServiceClassInternal implements IOm async transferChatAfterVerificationProcess(roomId: IRoom['_id']): Promise { try { - const room = await LivechatRooms.findOneById(roomId, { + const room = await LivechatRooms.findOneById>(roomId, { projection: { _id: 1, v: 1,