diff --git a/server/db/hotfiexes.js b/server/db/hotfiexes.js index 4ae59b8..c19113d 100644 --- a/server/db/hotfiexes.js +++ b/server/db/hotfiexes.js @@ -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(); + +/* + * + */