Skip to content
Snippets Groups Projects
Commit d39b7c1d authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

Add ID to appointments in DB

parent ec6d1fe3
No related branches found
No related tags found
1 merge request!983feat(dashboard) : create dashboard !
Pipeline #125000 passed
...@@ -182,6 +182,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked ...@@ -182,6 +182,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
await lastValueFrom( await lastValueFrom(
this.orientationService.createAppointment({ this.orientationService.createAppointment({
...this.onlineDemarcheForm.value, ...this.onlineDemarcheForm.value,
orientationId: this.orientation?._id,
onlineDemarcheType: this.onlineDemarcheForm.value.onlineDemarcheType.filter( onlineDemarcheType: this.onlineDemarcheForm.value.onlineDemarcheType.filter(
(item) => item.name !== 'pmrAccess', (item) => item.name !== 'pmrAccess',
), ),
...@@ -299,7 +300,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked ...@@ -299,7 +300,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
this.tunnelingStepIs(AccompanimentTypes.appointment, AppointmentSteps.orientationRecap) || this.tunnelingStepIs(AccompanimentTypes.appointment, AppointmentSteps.orientationRecap) ||
this.tunnelingStepIs(AccompanimentTypes.onlineMediation, OnlineMediationSteps.orientationRecap) this.tunnelingStepIs(AccompanimentTypes.onlineMediation, OnlineMediationSteps.orientationRecap)
) { ) {
this.orientation = await lastValueFrom(this.saveOrientation()) this.orientation = await lastValueFrom(this.saveOrientation());
} }
// Deals with last steps // Deals with last steps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment