correction parents to bdd
This commit is contained in:
parent
e999839bc5
commit
c5b25fb0b2
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user