institucion final

This commit is contained in:
xXpuma99Xx
2022-10-04 15:38:15 -05:00
parent 4aebd06b6d
commit 9084d5eeda
12 changed files with 47 additions and 137 deletions
+14 -14
View File
@@ -66,21 +66,21 @@ export class UploadFileController {
);
}
@Get('download-logo')
@UseGuards(AuthGuard('jwt'))
@ApiBearerAuth('jwt')
downloadLogo(
@Request() req,
@Response() res,
@Query() query: IdInstitucionDto,
) {
const operador: Operador = req.user.operador;
// @Get('download-logo')
// @UseGuards(AuthGuard('jwt'))
// @ApiBearerAuth('jwt')
// downloadLogo(
// @Request() req,
// @Response() res,
// @Query() query: IdInstitucionDto,
// ) {
// const operador: Operador = req.user.operador;
this.validarUsuarioService.validarAdminOperador(operador);
return this.uploadFileService
.downloadLogo(parseInt(query.id_institucion))
.then((logo) => res.download(logo));
}
// this.validarUsuarioService.validarAdminOperador(operador);
// return this.uploadFileService
// .downloadLogo(parseInt(query.id_institucion))
// .then((logo) => res.download(logo));
// }
@Get('download-plantilla-equipos')
@UseGuards(AuthGuard('jwt'))