mirror of
https://github.com/hexastack/hexabot
synced 2025-04-01 08:15:07 +00:00
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:
commit
6f75c4225c
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user