This commit is contained in:
Lemuel Marquez
2021-04-06 10:06:53 -05:00
parent 7f04c19b8c
commit 6da86fb19d
2 changed files with 8 additions and 8 deletions
@@ -14,10 +14,10 @@ const gustavoBazPrada = async (body) => {
return Servicio.findAll({
where: {
[Op.and]: {
fechaLiberacion: { [Op.gte]: moment(`${year}-01-31`) },
fechaLiberacion: { [Op.lte]: moment(`${year + 1}-01-31`) },
},
[Op.and]: [
{ fechaLiberacion: { [Op.gte]: moment(`${year}-01-31`) } },
{ fechaLiberacion: { [Op.lte]: moment(`${year + 1}-01-31`) } },
],
},
include: [{ model: Usuario }, { model: Carrera }],
}).then((res) => {
+4 -4
View File
@@ -15,10 +15,10 @@ const reporte = async (body) => {
return Servicio.findAll({
where: {
[Op.and]: {
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) => {