Skip to content

Commit

Permalink
fix(be): using originname when update chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Jul 13, 2023
1 parent 3942af9 commit f7fc0b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/files/files.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ export class FilesService {
}
const s3SubFolder =
this.configService.get<string>('aws.s3SubFolder') || 'images';
const keyName = `${s3SubFolder}/manga-${mangaId}/chapter-${chapterNumber}/thumbnail.${thumbnail.fileName
.split('.')
.pop()}`;
const keyName = `${s3SubFolder}/manga-${mangaId}/chapter-${chapterNumber}/${thumbnail.fileName}`;
const filePath = thumbnail.fullPath;
const result = await this.uploadToS3(keyName, filePath);

Expand Down

0 comments on commit f7fc0b1

Please sign in to comment.