Complete the basic function of customisation

This commit is contained in:
Jiaxin Peng
2024-01-29 11:12:07 +00:00
parent a179d3da52
commit 8c6aea8250
6 changed files with 54 additions and 36 deletions

View File

@@ -107,7 +107,9 @@ export class Upload2NotionCustom extends UploadBaseCustom {
const file2Block = markdownToBlocks(__content, options);
const frontmasster =
app.metadataCache.getFileCache(nowFile)?.frontmatter;
const notionID = frontmasster ? frontmasster.notionID : null;
const {abName} = this.dbDetails
const notionIDKey = `NotionID-${abName}`;
const notionID = frontmasster ? frontmasster[notionIDKey] : null;
if (notionID) {
res = await this.updatePage(