Merge pull request #833 from Hexastack/832-bug---support-empty-object-when-creating-conversation

fix: disabled minimize option for conversation schema
This commit is contained in:
Med Marrouchi 2025-03-20 12:49:19 +01:00 committed by GitHub
commit 6f75c4225c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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,