feat(s3): implement non-ephemeral storage through S3/DO Spaces

This commit is contained in:
Amruth Pillai
2022-04-09 09:28:08 +02:00
parent d0863d68c6
commit feb911aea0
13 changed files with 973 additions and 38 deletions

View File

@ -99,7 +99,7 @@ export class ResumeController {
@Put(':id/photo')
@UseInterceptors(FileInterceptor('file'))
async uploadPhoto(@Param('id') id: string, @User('id') userId: number, @UploadedFile() file: Express.Multer.File) {
return this.resumeService.uploadPhoto(+id, userId, file.filename);
return this.resumeService.uploadPhoto(+id, userId, file);
}
@UseGuards(JwtAuthGuard)