diff --git a/backend/src/routes/user/dto/create_gestionnaire.dto.ts b/backend/src/routes/user/dto/create_gestionnaire.dto.ts index 26f36ab..cea3687 100644 --- a/backend/src/routes/user/dto/create_gestionnaire.dto.ts +++ b/backend/src/routes/user/dto/create_gestionnaire.dto.ts @@ -2,7 +2,7 @@ import { ApiProperty, OmitType } from "@nestjs/swagger"; import { CreateUserDto } from "./create_user.dto"; import { IsOptional, IsUUID } from "class-validator"; -export class CreateGestionnaireDto extends OmitType(CreateUserDto, ['role'] as const) { +export class CreateGestionnaireDto extends OmitType(CreateUserDto, ['role', 'adresse'] as const) { @ApiProperty({ required: false, description: 'ID du relais de rattachement' }) @IsOptional() @IsUUID() diff --git a/backend/src/routes/user/gestionnaires/gestionnaires.service.ts b/backend/src/routes/user/gestionnaires/gestionnaires.service.ts index bb838d7..a8fa5a9 100644 --- a/backend/src/routes/user/gestionnaires/gestionnaires.service.ts +++ b/backend/src/routes/user/gestionnaires/gestionnaires.service.ts @@ -35,7 +35,7 @@ export class GestionnairesService { genre: dto.genre, statut: dto.statut, telephone: dto.telephone, - adresse: dto.adresse, + // adresse: dto.adresse, // Adresse retirée du formulaire de création photo_url: dto.photo_url, consentement_photo: dto.consentement_photo ?? false, date_consentement_photo: dto.date_consentement_photo