From 48a1188a552e729cd78967a00a7a0f88646bd9bc Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Fri, 10 May 2024 10:42:00 +0200 Subject: [PATCH] Fix path --- manifest.json | 2 +- src/repositoryConnection/RepositoryConnection.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 2ddaa0a..899e824 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "quartz-syncer", "name": "Quartz Syncer", - "version": "1.1.1", + "version": "1.1.2", "minAppVersion": "0.12.0", "description": "Sync Obsidian Markdown for Quartz", "author": "Emile Bangma", diff --git a/src/repositoryConnection/RepositoryConnection.ts b/src/repositoryConnection/RepositoryConnection.ts index e30fdbc..a3ff88d 100644 --- a/src/repositoryConnection/RepositoryConnection.ts +++ b/src/repositoryConnection/RepositoryConnection.ts @@ -216,10 +216,10 @@ export class RepositoryConnection { const filesToDelete = filePaths.map((path) => { if (path.endsWith(".md")) { - return `${this.contentFolder}${normalizePath(path)}`; + return `${this.contentFolder}/${normalizePath(path)}`; } - return `${this.contentFolder}${normalizePath(path)}`; + return `${this.contentFolder}/${normalizePath(path)}`; }); const repoDataPromise = this.octokit.request( @@ -327,7 +327,7 @@ export class RepositoryConnection { ); return { - path: `${this.contentFolder}${normalizePath( + path: `${this.contentFolder}/${normalizePath( file.getPath(), )}`, mode: "100644", @@ -353,7 +353,7 @@ export class RepositoryConnection { ); return { - path: `${this.contentFolder}${normalizePath( + path: `${this.contentFolder}/${normalizePath( asset.path, )}`, mode: "100644",