reportes y correcion de termino
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user