From c5b25fb0b20e4146e18d4a00c2a493b5637e124b Mon Sep 17 00:00:00 2001 From: sdraris Date: Mon, 8 Sep 2025 10:17:57 +0200 Subject: [PATCH] correction parents to bdd --- src/routes/user/dto/create_parent.dto.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/user/dto/create_parent.dto.ts b/src/routes/user/dto/create_parent.dto.ts index d6d3aa7..8bc4837 100644 --- a/src/routes/user/dto/create_parent.dto.ts +++ b/src/routes/user/dto/create_parent.dto.ts @@ -4,8 +4,9 @@ import { IsNotEmpty, IsOptional, IsUUID } from "class-validator"; export class CreateParentDto extends OmitType(CreateUserDto, ['role'] as const) { @IsUUID() + @IsOptional() @IsNotEmpty() - user_id: string; + user_id?: string; @IsOptional() @IsUUID()