Skip to content

Commit

Permalink
fix: Compile error #173
Browse files Browse the repository at this point in the history
  • Loading branch information
seheon99 committed Dec 11, 2021
1 parent b638546 commit cb21690
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/amazing_picture/amazing_picture.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export class AmazingPictureService {
}

async create(file: FileUpload) {
const amazingUrl = await this.storageService.post(file);
const amazingUrl = await this.storageService.post(
file.createReadStream(),
file.filename,
);
if (!amazingUrl)
throw new InternalServerErrorException(
`Error occured during upload file, ${file.filename}`,
Expand Down

0 comments on commit cb21690

Please sign in to comment.