Se modificaron varias cosas en los endpoint y en algunas entities asi como en los dto
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user