mirror of
https://github.com/hexastack/hexabot
synced 2025-04-02 12:21:19 +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:
|
* 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.
|
* 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 {
|
class ConversationStub extends BaseSchema {
|
||||||
@Prop({
|
@Prop({
|
||||||
type: MongooseSchema.Types.ObjectId,
|
type: MongooseSchema.Types.ObjectId,
|
||||||
|
@ -224,6 +224,7 @@ describe('BlockService', () => {
|
|||||||
lat: 0,
|
lat: 0,
|
||||||
lon: 0,
|
lon: 0,
|
||||||
},
|
},
|
||||||
|
skip: {},
|
||||||
vars: {},
|
vars: {},
|
||||||
nlp: null,
|
nlp: null,
|
||||||
payload: null,
|
payload: null,
|
||||||
@ -285,6 +286,7 @@ describe('BlockService', () => {
|
|||||||
},
|
},
|
||||||
user_location: { lat: 0, lon: 0 },
|
user_location: { lat: 0, lon: 0 },
|
||||||
vars: {},
|
vars: {},
|
||||||
|
skip: {},
|
||||||
nlp: null,
|
nlp: null,
|
||||||
payload: null,
|
payload: null,
|
||||||
attempt: 0,
|
attempt: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user