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()