From 4b764a5729c6571157f268e33c75f7637523a10a Mon Sep 17 00:00:00 2001 From: mcele Date: Fri, 3 Jan 2025 12:10:11 -0300 Subject: [PATCH] fix(CITAS): Cambia fecha fin job actualizar agendas --- jobs/actualizarAgendasJob.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/actualizarAgendasJob.ts b/jobs/actualizarAgendasJob.ts index 53fcac8e50..0544b7f075 100644 --- a/jobs/actualizarAgendasJob.ts +++ b/jobs/actualizarAgendasJob.ts @@ -4,7 +4,7 @@ import moment = require('moment'); function run(done) { const fechaActualizar = moment(new Date()); const start = (moment(fechaActualizar).startOf('day').subtract(1, 'days').toDate() as any); - const end = (moment(fechaActualizar).endOf('day').toDate() as any); + const end = (moment(start).endOf('day').toDate() as any); Promise.all([ agendaCtrl.actualizarTiposDeTurno(), agendaCtrl.actualizarEstadoAgendas(start, end)