fix create membership
This commit is contained in:
@@ -10,9 +10,12 @@ export class CreateUserDto {
|
||||
@IsUUID()
|
||||
roleId: string;
|
||||
|
||||
@ValidateIf((o) => {
|
||||
return !!o.superior;
|
||||
})
|
||||
@IsUUID()
|
||||
superior: string;
|
||||
@IsNotEmpty()
|
||||
superior: boolean;
|
||||
|
||||
// @ValidateIf((o) => {
|
||||
// return !!o.superior;
|
||||
// })
|
||||
// @IsUUID()
|
||||
// superior: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user