Skip to content

Commit

Permalink
[fix] getImageUrl()과 delete() 메서드 내에 basePath 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
kmi0817 committed Oct 9, 2024
1 parent 092cfd1 commit 3dc0bac
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 3dc0bac

Please sign in to comment.