diff --git a/luna-backend/src/application/business/ambientes/bloco/bloco.controller.ts b/luna-backend/src/application/business/ambientes/bloco/bloco.controller.ts index 6de64fa7..4d659d10 100644 --- a/luna-backend/src/application/business/ambientes/bloco/bloco.controller.ts +++ b/luna-backend/src/application/business/ambientes/bloco/bloco.controller.ts @@ -95,8 +95,20 @@ export class BlocoController { }, }, }) - @UseInterceptors(FileInterceptor('file', { limits: { fileSize: 10 * 1024 * 1024, files: 1 } })) - async blocoImagemCapaSave(@ContextoDeAcessoHttp() contextoDeAcesso: IContextoDeAcesso, @Param('id', ParseUUIDPipe) id: string, @UploadedFile() file: Express.Multer.File) { + @UseInterceptors( + FileInterceptor('file', { + limits: { + files: 1, + fileSize: 10 * 1024 * 1024, + }, + }), + ) + async blocoImagemCapaSave( + // + @ContextoDeAcessoHttp() contextoDeAcesso: IContextoDeAcesso, + @Param('id', ParseUUIDPipe) id: string, + @UploadedFile() file: Express.Multer.File, + ) { return this.blocoService.blocoUpdateImagemCapa(contextoDeAcesso, { id }, file); }