ZOD-339-child-profile-gender-update-is-not-reflected-after-editing

This commit is contained in:
Abdalhamid Alhamad
2025-10-19 11:01:52 +03:00
parent fdd2e23669
commit 7b57277a7f
3 changed files with 29 additions and 3 deletions

View File

@ -120,6 +120,7 @@ export class JuniorService {
setIf(customer, 'firstName', body.firstName);
setIf(customer, 'lastName', body.lastName);
setIf(customer, 'dateOfBirth', body.dateOfBirth as unknown as Date);
setIf(customer, 'gender', body.gender);
setIf(junior, 'relationship', body.relationship);
await Promise.all([junior.save(), customer.save(), user.save()]);