Skip to content

Commit

Permalink
FEAT - Modificar fechas en job citas
Browse files Browse the repository at this point in the history
* **auth:** filtro profesional habilitado en login ([#1958](#1958)) ([fb0eec6](fb0eec6))
  • Loading branch information
aldoEMatamala authored and JuanIRamirez committed Dec 30, 2024
1 parent 3d11d3d commit 20900a1
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 20900a1

Please sign in to comment.