From 6749f2025a47e6f1b972ce3bfb9d5cd83c417ea7 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Tue, 24 Feb 2026 23:15:29 +0100 Subject: [PATCH] fix(backend): remove date_consentement_photo from gestionnaire update Co-authored-by: Cursor --- .../user/gestionnaires/gestionnaires.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/src/routes/user/gestionnaires/gestionnaires.service.ts b/backend/src/routes/user/gestionnaires/gestionnaires.service.ts index 45ccaf0..25b48cc 100644 --- a/backend/src/routes/user/gestionnaires/gestionnaires.service.ts +++ b/backend/src/routes/user/gestionnaires/gestionnaires.service.ts @@ -91,13 +91,13 @@ export class GestionnairesService { gestionnaire.password = await bcrypt.hash(dto.password, salt); } - if (dto.date_consentement_photo !== undefined) { - gestionnaire.date_consentement_photo = dto.date_consentement_photo - ? new Date(dto.date_consentement_photo) - : undefined; - } + // if (dto.date_consentement_photo !== undefined) { + // gestionnaire.date_consentement_photo = dto.date_consentement_photo + // ? new Date(dto.date_consentement_photo) + // : undefined; + // } - const { password, date_consentement_photo, ...rest } = dto; + const { password, ...rest } = dto; Object.entries(rest).forEach(([key, value]) => { if (value !== undefined) { (gestionnaire as any)[key] = value;