mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-29 08:08:34 +08:00
Fixed delete old page
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user