From 2a4e03e31971cef5693665ffd120909e2e5000da Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 17 Jun 2022 23:11:38 +0800 Subject: [PATCH] Update use file modify instead of fs write --- Upload2Notion.ts | 2 +- main.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Upload2Notion.ts b/Upload2Notion.ts index 60654e5..db226ce 100644 --- a/Upload2Notion.ts +++ b/Upload2Notion.ts @@ -78,7 +78,7 @@ export class Upload2Notion { }) return response; } catch (error) { - console.log(error) + new Notice(`network error ${error}`) } } diff --git a/main.ts b/main.ts index 878d980..b49fc6a 100644 --- a/main.ts +++ b/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 {