Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
saberzero1 committed May 10, 2024
1 parent 13f36fd commit 48a1188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/repositoryConnection/RepositoryConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -327,7 +327,7 @@ export class RepositoryConnection {
);

return {
path: `${this.contentFolder}${normalizePath(
path: `${this.contentFolder}/${normalizePath(
file.getPath(),
)}`,
mode: "100644",
Expand All @@ -353,7 +353,7 @@ export class RepositoryConnection {
);

return {
path: `${this.contentFolder}${normalizePath(
path: `${this.contentFolder}/${normalizePath(
asset.path,
)}`,
mode: "100644",
Expand Down

0 comments on commit 48a1188

Please sign in to comment.