From 3de8dc5e7ab7767fa7c178a6a8998ec427969376 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Wed, 19 Mar 2025 12:26:44 +0100 Subject: [PATCH] fix: disabled minimize option for conversation schema --- api/src/chat/schemas/conversation.schema.ts | 4 ++-- api/src/chat/services/bot.service.spec.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/chat/schemas/conversation.schema.ts b/api/src/chat/schemas/conversation.schema.ts index e019ba15..6d5a0aae 100644 --- a/api/src/chat/schemas/conversation.schema.ts +++ b/api/src/chat/schemas/conversation.schema.ts @@ -1,5 +1,5 @@ /* - * Copyright © 2024 Hexastack. All rights reserved. + * Copyright © 2025 Hexastack. All rights reserved. * * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. @@ -38,7 +38,7 @@ export function getDefaultConversationContext(): Context { }; } -@Schema({ timestamps: true }) +@Schema({ timestamps: true, minimize: false }) class ConversationStub extends BaseSchema { @Prop({ type: MongooseSchema.Types.ObjectId, diff --git a/api/src/chat/services/bot.service.spec.ts b/api/src/chat/services/bot.service.spec.ts index db918a8a..94aca978 100644 --- a/api/src/chat/services/bot.service.spec.ts +++ b/api/src/chat/services/bot.service.spec.ts @@ -224,6 +224,7 @@ describe('BlockService', () => { lat: 0, lon: 0, }, + skip: {}, vars: {}, nlp: null, payload: null, @@ -285,6 +286,7 @@ describe('BlockService', () => { }, user_location: { lat: 0, lon: 0 }, vars: {}, + skip: {}, nlp: null, payload: null, attempt: 0,