successful build for type and slug

This commit is contained in:
Jiaxin Peng
2023-08-09 19:32:25 +01:00
parent 8fd6f7c701
commit 6724399628
2 changed files with 3 additions and 3 deletions

View File

@@ -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),
})