Fixed delete old page

This commit is contained in:
chris
2022-08-22 09:35:52 +08:00
parent d845dc7945
commit 05a8b789d9

View File

@@ -86,7 +86,7 @@ export class Upload2Notion {
const __content = yamlObj.__content const __content = yamlObj.__content
const file2Block = markdownToBlocks(__content); const file2Block = markdownToBlocks(__content);
const frontmasster =await app.metadataCache.getFileCache(nowFile)?.frontmatter const frontmasster =await app.metadataCache.getFileCache(nowFile)?.frontmatter
const notionID = frontmasster ? frontmasster.notionId : null const notionID = frontmasster ? frontmasster.notionID : null
if(notionID){ if(notionID){
res = await this.updatePage(notionID, title, file2Block); res = await this.updatePage(notionID, title, file2Block);