diff --git a/src/app/components/home/workspace/hours/hours.component.ts b/src/app/components/home/workspace/hours/hours.component.ts index c5becba..dadbe82 100644 --- a/src/app/components/home/workspace/hours/hours.component.ts +++ b/src/app/components/home/workspace/hours/hours.component.ts @@ -82,9 +82,9 @@ export class HoursComponent implements OnInit { params.tone_duration = this.tone_duration; params.dtmf_code = this.dtmf_code; params.dtmf_duration = this.dtmf_duration; - this.bs.updateSchedulers(this.schedule).subscribe( + this.bs.updateParams(params).subscribe( data => { - this.bs.updateParams(params).subscribe( + this.bs.updateSchedulers(this.schedule).subscribe( data => { this.toast.success("Mise à jour des horaires réussie"); }, err => {