From 54a8a081d9a560007df0ff771d46dccb217f210e Mon Sep 17 00:00:00 2001 From: "Gabriel R. Antunes" Date: Thu, 28 Mar 2024 22:10:47 -0400 Subject: [PATCH] style --- .../business/ambientes/bloco/bloco.controller.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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); }