error
This commit is contained in:
@@ -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();
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user