From d39b7c1df19257729a8964989885faf7eade1914 Mon Sep 17 00:00:00 2001 From: Marlene Simondant <msimondant@grandlyon.com> Date: Mon, 24 Mar 2025 17:19:45 +0100 Subject: [PATCH] Add ID to appointments in DB --- .../orientation-form-view/orientation-form-view.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/form/orientation-form-view/orientation-form-view.component.ts b/src/app/form/orientation-form-view/orientation-form-view.component.ts index 1a25c5f12..4dd07de2c 100644 --- a/src/app/form/orientation-form-view/orientation-form-view.component.ts +++ b/src/app/form/orientation-form-view/orientation-form-view.component.ts @@ -182,6 +182,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked await lastValueFrom( this.orientationService.createAppointment({ ...this.onlineDemarcheForm.value, + orientationId: this.orientation?._id, onlineDemarcheType: this.onlineDemarcheForm.value.onlineDemarcheType.filter( (item) => item.name !== 'pmrAccess', ), @@ -299,7 +300,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked this.tunnelingStepIs(AccompanimentTypes.appointment, AppointmentSteps.orientationRecap) || this.tunnelingStepIs(AccompanimentTypes.onlineMediation, OnlineMediationSteps.orientationRecap) ) { - this.orientation = await lastValueFrom(this.saveOrientation()) + this.orientation = await lastValueFrom(this.saveOrientation()); } // Deals with last steps -- GitLab