mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-31 01:48:35 +08:00
Update use file modify instead of fs write
This commit is contained in:
@@ -78,7 +78,7 @@ export class Upload2Notion {
|
|||||||
})
|
})
|
||||||
return response;
|
return response;
|
||||||
} catch (error) {
|
} 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 { basename } = nowFile;
|
||||||
const upload = new Upload2Notion(this);
|
const upload = new Upload2Notion(this);
|
||||||
const res = await upload.syncMarkdownToNotion(basename, markDownData,nowFile, this.app)
|
const res = await upload.syncMarkdownToNotion(basename, markDownData,nowFile, this.app)
|
||||||
console.log(res)
|
|
||||||
if(res.status === 200){
|
if(res.status === 200){
|
||||||
new Notice(`${this.settings.langConfig["sync-success"]}${basename}`)
|
new Notice(`${this.settings.langConfig["sync-success"]}${basename}`)
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
Reference in New Issue
Block a user