Skip to content

Commit

Permalink
fix(CITAS): Cambia fecha fin job actualizar agendas
Browse files Browse the repository at this point in the history
  • Loading branch information
MCele committed Jan 3, 2025
1 parent 855ae22 commit 4b764a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/actualizarAgendasJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b764a5

Please sign in to comment.