From 4f4ca2868257d21195c8ea62cfaf7f1c0f9e449f Mon Sep 17 00:00:00 2001 From: sdraris Date: Fri, 19 Sep 2025 11:36:15 +0200 Subject: [PATCH] parents dto creection --- src/routes/user/dto/create_parent.dto.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()