From 05a8b789d96ad0d6749b9fe97e220729565a3e4b Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 22 Aug 2022 09:35:52 +0800 Subject: [PATCH] Fixed delete old page --- Upload2Notion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Upload2Notion.ts b/Upload2Notion.ts index b0f2101..57645a0 100644 --- a/Upload2Notion.ts +++ b/Upload2Notion.ts @@ -86,7 +86,7 @@ export class Upload2Notion { const __content = yamlObj.__content const file2Block = markdownToBlocks(__content); const frontmasster =await app.metadataCache.getFileCache(nowFile)?.frontmatter - const notionID = frontmasster ? frontmasster.notionId : null + const notionID = frontmasster ? frontmasster.notionID : null if(notionID){ res = await this.updatePage(notionID, title, file2Block);