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,