add:partner module
This commit is contained in:
@@ -12,4 +12,7 @@ export class CreatePartnerDto {
|
||||
|
||||
@IsNotEmpty()
|
||||
npwp: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
password_account: string;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { IsNotEmpty, IsOptional, IsUUID, ValidateIf } from 'class-validator';
|
||||
import { Partner } from '../entities/partner.entity';
|
||||
|
||||
export class CreateUserDto {
|
||||
@IsNotEmpty()
|
||||
@@ -13,6 +14,7 @@ export class CreateUserDto {
|
||||
@IsNotEmpty()
|
||||
superior: boolean;
|
||||
|
||||
partner: Partner;
|
||||
// @ValidateIf((o) => {
|
||||
// return !!o.superior;
|
||||
// })
|
||||
|
||||
Reference in New Issue
Block a user