Update use file modify instead of fs write

This commit is contained in:
chris
2022-06-17 23:11:38 +08:00
parent c0d9f41555
commit 2a4e03e319
2 changed files with 1 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ export class Upload2Notion {
})
return response;
} catch (error) {
console.log(error)
new Notice(`network error ${error}`)
}
}

View File

@@ -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 {