From 67243996288dbf0f4eaab4b2f414b83a3bf7373d Mon Sep 17 00:00:00 2001 From: Jiaxin Peng Date: Wed, 9 Aug 2023 19:32:25 +0100 Subject: [PATCH] successful build for type and slug --- Upload2Notion.ts | 4 ++-- main.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Upload2Notion.ts b/Upload2Notion.ts index 2f3886b..b506142 100644 --- a/Upload2Notion.ts +++ b/Upload2Notion.ts @@ -63,7 +63,7 @@ export class Upload2Notion { rich_text: [ { text: { - content: slug || 'slug-1' + content: slug } } ] @@ -89,7 +89,7 @@ export class Upload2Notion { 'Content-Type': 'application/json', // 'User-Agent': 'obsidian.md', 'Authorization': 'Bearer ' + this.app.settings.notionAPI, - 'Notion-Version': '2021-08-16', + 'Notion-Version': '2022-06-28', }, body: JSON.stringify(bodyString), }) diff --git a/main.ts b/main.ts index ad697b7..ec44cdb 100644 --- a/main.ts +++ b/main.ts @@ -119,7 +119,7 @@ export default class ObsidianSyncNotionPlugin extends Plugin { nowFile, tags, type, - slug + slug, }; } else { new Notice(langConfig["open-file"]);