From 926c074ffe8be97c50b1a8bd89a57ecc8ff452de Mon Sep 17 00:00:00 2001 From: DigoCast Date: Tue, 26 May 2026 22:54:58 -0300 Subject: [PATCH] fix: change agentid and groupid to deafult null --- backend/src/modules/chat/infra/chat.schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/modules/chat/infra/chat.schema.ts b/backend/src/modules/chat/infra/chat.schema.ts index ecbb6f6..caa0be3 100644 --- a/backend/src/modules/chat/infra/chat.schema.ts +++ b/backend/src/modules/chat/infra/chat.schema.ts @@ -14,10 +14,10 @@ export class Chat { @Prop({ required: true, type: Types.ObjectId }) clientId: Types.ObjectId; - @Prop({ required: true, type: Types.ObjectId }) + @Prop({ type: Types.ObjectId, default: null }) agentId: Types.ObjectId; - @Prop({ required: true, type: Types.ObjectId }) + @Prop({ type: Types.ObjectId, default: null }) groupId: Types.ObjectId; @Prop({ default: 'open', enum: ['open', 'closed'] })