fix: disabled minimize option for conversation schema

This commit is contained in:
yassinedorbozgithub 2025-03-19 12:26:44 +01:00
parent affcd12b52
commit 3de8dc5e7a
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,