fix(SPG-535) BE - Update Tenant - Muncul warning email must be an email ketika save padahal email tidak diubah (sama dengan ketika create)

pull/2/head
ashar 2024-06-18 08:54:09 +07:00
parent aa3c8fa359
commit 84e65d2599
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export class UpdateTenantDto extends BaseStatusDto implements UserEntity {
share_margin: number;
@ApiProperty({ name: 'email', required: false, example: 'tenant@mail.com' })
@IsEmail()
@IsEmail({ ignore_max_length: true })
@ValidateIf((body) => body.email)
email: string;