fix(SPG-509) BE - Create/ Update Tenant - Muncul Error email not valid ketika email address panjang, padahal struktur sudah bentuk email
parent
a126dd267c
commit
f5c4b1ffdf
|
@ -29,7 +29,7 @@ export class TenantDto extends BaseStatusDto implements UserEntity {
|
|||
password: string;
|
||||
|
||||
@ApiProperty({ name: 'email', required: false, example: 'tenant@mail.com' })
|
||||
@IsEmail()
|
||||
@IsEmail({ ignore_max_length: true })
|
||||
@ValidateIf((body) => body.email)
|
||||
email: string;
|
||||
|
||||
|
|
Loading…
Reference in New Issue