reportes y correcion de termino

This commit is contained in:
Lemuel Marquez
2021-04-05 15:24:18 -05:00
parent 9b5eeb9b93
commit 871d121cbd
8 changed files with 95 additions and 3272 deletions
+3 -2
View File
@@ -7,7 +7,7 @@ const Programa = require('../../db/tablas/Programa');
const Usuario = require('../../db/tablas/Usuario');
const Carrera = require('../../db/tablas/Carrera');
const get = async (body) => {
const reporte = async (body) => {
const inicio = validar.validarFecha(body.inicio);
const fin = validar.validarFecha(body.fin);
const path = `csv/reporte.csv`;
@@ -28,6 +28,7 @@ const get = async (body) => {
correo: res[i].correo,
fehcaInicio: res[i].fechaInicio,
fechaFin: res[i].fechaFin,
fechaLiberacion: res[i].fechaLiberacion,
institucion: res[i].Programa.institucion,
dependencia: res[i].Programa.dependencia,
programa: res[i].Programa.programa,
@@ -47,4 +48,4 @@ const get = async (body) => {
});
};
module.exports = get;
module.exports = reporte;