fix(SPG-535) BE - Update Tenant - Muncul warning email must be an email ketika save padahal email tidak diubah (sama dengan ketika create)
parent
aa3c8fa359
commit
84e65d2599
|
@ -25,7 +25,7 @@ export class UpdateTenantDto extends BaseStatusDto implements UserEntity {
|
||||||
share_margin: number;
|
share_margin: number;
|
||||||
|
|
||||||
@ApiProperty({ name: 'email', required: false, example: 'tenant@mail.com' })
|
@ApiProperty({ name: 'email', required: false, example: 'tenant@mail.com' })
|
||||||
@IsEmail()
|
@IsEmail({ ignore_max_length: true })
|
||||||
@ValidateIf((body) => body.email)
|
@ValidateIf((body) => body.email)
|
||||||
email: string;
|
email: string;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue