Skip to content

Commit

Permalink
fix: path fix for images (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Sep 26, 2023
2 parents 92f0717 + 50e79d5 commit c2783a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/server/file-storage/src/lib/local.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export class LocalStore implements FileManager {
) {}

read(path: string) {
return readFile(join(this.config.path, path.replace("./image/", "./")));
return readFile(join(this.config.path, path.replace("./images/", "./")));
}

write(path: string, data: string | Buffer) {
return writeFile(
join(this.config.path, path.replace("./image/", "./")),
join(this.config.path, path.replace("./images/", "./")),
data,
);
}
Expand Down

0 comments on commit c2783a4

Please sign in to comment.