From c0c2936f9edac55716762d3be81bc0dcae093da5 Mon Sep 17 00:00:00 2001 From: Lemuel Marquez Date: Wed, 27 Jan 2021 21:24:35 -0600 Subject: [PATCH] error --- server/db/hotfiexes.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); + +/* + * + */