Skip to content

Commit

Permalink
fix(CITAS): Agrega filtro por efector en get agendas (#2794)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCele authored Dec 28, 2022
1 parent ebbf51f commit f8663b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/components/turnos/dar-turnos/dar-turnos.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,14 @@ export class DarTurnosComponent implements OnInit {
this.estadoT = 'noTurnos';

if (this.opciones.tipoPrestacion || this.opciones.profesional) {
this.serviceAgenda.get({
const params = {
fechaDesde: moment(this.agenda.horaInicio).add(1, 'day').toDate(),
idTipoPrestacion: this.opciones.tipoPrestacion ? this.opciones.tipoPrestacion.id : null,
idProfesional: this.opciones.profesional ? this.opciones.profesional.id : null,
estados: ['disponible', 'publicada']
}).subscribe(alternativas => {
estados: ['disponible', 'publicada'],
organizacion: this.organizacion.id
};
this.serviceAgenda.get(params).subscribe(alternativas => {
this.alternativas = alternativas;
this.reqfiltros = false;
});
Expand Down

0 comments on commit f8663b0

Please sign in to comment.