Se modificaron varias cosas en los endpoint y en algunas entities asi como en los dto

This commit is contained in:
santiago
2025-12-09 09:03:52 -06:00
parent 3e67102878
commit 7a260169cc
16 changed files with 14030 additions and 13923 deletions
+6 -2
View File
@@ -83,10 +83,14 @@ export class ServicioController {
return res.download(path);
}
// Corregi el endpoint tenia llamando a otrea funcion
@Get('reporte')
@UseGuards(AuthGuard('jwt'))
async generarReporte(@Query() query: any, @Res() res: Response) {
const path = await this.servicioService.generarGustavoBazPrada(query.year);
async generarReporte(
@Query('inicio') inicio: string,
@Query('fin') fin: string,
@Res() res: Response) {
const path = await this.servicioService.generarReporte(inicio, fin);
return res.download(path);
}