diff --git a/src/routes/user/dto/create_parent.dto.ts b/src/routes/user/dto/create_parent.dto.ts index 8bc4837..d6d3aa7 100644 --- a/src/routes/user/dto/create_parent.dto.ts +++ b/src/routes/user/dto/create_parent.dto.ts @@ -4,9 +4,8 @@ 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()