error en reportes en fechas
This commit is contained in:
@@ -15,8 +15,10 @@ const reporte = async (body) => {
|
||||
|
||||
return Servicio.findAll({
|
||||
where: {
|
||||
fechaInicio: { [Op.gte]: inicio },
|
||||
fechaInicio: { [Op.lte]: fin },
|
||||
[Op.and]: {
|
||||
fechaInicio: { [Op.gte]: inicio },
|
||||
fechaInicio: { [Op.lte]: fin },
|
||||
},
|
||||
},
|
||||
include: [{ model: Programa }, { model: Usuario }, { model: Carrera }],
|
||||
}).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user