mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-29 16:35:57 +08:00
Update use file modify instead of fs write
This commit is contained in:
@@ -78,7 +78,7 @@ export class Upload2Notion {
|
||||
})
|
||||
return response;
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
new Notice(`network error ${error}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
1
main.ts
1
main.ts
@@ -85,7 +85,6 @@ export default class ObsidianSyncNotionPlugin extends Plugin {
|
||||
const { basename } = nowFile;
|
||||
const upload = new Upload2Notion(this);
|
||||
const res = await upload.syncMarkdownToNotion(basename, markDownData,nowFile, this.app)
|
||||
console.log(res)
|
||||
if(res.status === 200){
|
||||
new Notice(`${this.settings.langConfig["sync-success"]}${basename}`)
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user