From 96419b8d54193bcfb1cc7e115692129103c94b4d Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Sun, 29 Jun 2025 00:12:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=8F=82=E6=95=B0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/MemoryController.ts | 2 +- src/controllers/schemas/MemoryControllerSchemas.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/MemoryController.ts b/src/controllers/MemoryController.ts index 984675d..61f9c2f 100644 --- a/src/controllers/MemoryController.ts +++ b/src/controllers/MemoryController.ts @@ -494,7 +494,7 @@ export class MemoryController { return; } - if (body.inheritMetadata) { + if (body.inheritMetadata ?? true) { const currentPage = await ctx.database!.getRepository(ConversationPage) .findOneBy({ conversationId: conversation.conversationId, pageId: conversation.currentPage }); if (currentPage) { diff --git a/src/controllers/schemas/MemoryControllerSchemas.ts b/src/controllers/schemas/MemoryControllerSchemas.ts index 02962e1..dce6a86 100644 --- a/src/controllers/schemas/MemoryControllerSchemas.ts +++ b/src/controllers/schemas/MemoryControllerSchemas.ts @@ -118,7 +118,7 @@ export type UpdatePageMetadataItemReqType = z.infer;