mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-30 00:48:36 +08:00
successful build for type and slug
This commit is contained in:
@@ -63,7 +63,7 @@ export class Upload2Notion {
|
|||||||
rich_text: [
|
rich_text: [
|
||||||
{
|
{
|
||||||
text: {
|
text: {
|
||||||
content: slug || 'slug-1'
|
content: slug
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -89,7 +89,7 @@ export class Upload2Notion {
|
|||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
// 'User-Agent': 'obsidian.md',
|
// 'User-Agent': 'obsidian.md',
|
||||||
'Authorization': 'Bearer ' + this.app.settings.notionAPI,
|
'Authorization': 'Bearer ' + this.app.settings.notionAPI,
|
||||||
'Notion-Version': '2021-08-16',
|
'Notion-Version': '2022-06-28',
|
||||||
},
|
},
|
||||||
body: JSON.stringify(bodyString),
|
body: JSON.stringify(bodyString),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user