This commit is contained in:
2021-01-27 21:24:35 -06:00
parent 7c3ebbd835
commit c0c2936f9e
+6 -1
View File
@@ -48,14 +48,19 @@ const corregir = async () => {
Servicio.findAll({ where: { idStatus: 4 } }).then(async (res) => {
for (let i = 0; i < res.length; i++) {
if (res[i].fechaFin > hoy) {
console.log(res[i]);
console.log(res[i].dataValues);
// await Servicio.update(
// { idStatus: 3 },
// { where: { idServicio: res[i].idServicio } }
// );
}
}
console.log(res.length);
});
};
corregir();
/*
*
*/