Skip to content

Commit

Permalink
Merge pull request #484 from kmi0817/be-feature/#483-fix-static-path
Browse files Browse the repository at this point in the history
[fix] getImageUrl()๊ณผ delete() ๋ฉ”์„œ๋“œ ๋‚ด์— basePath ์ œ๊ฑฐ
  • Loading branch information
yaongmeow authored Oct 10, 2024
2 parents 092cfd1 + 3dc0bac commit 560bca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BE/src/file/file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export class FileService {
}

async getImageUrl(key: string): Promise<string> {
return this.basePath + key;
return key;
}

async delete(path: string) {
await unlink(this.basePath + path);
await unlink(path);
}
}

0 comments on commit 560bca7

Please sign in to comment.