fix(SPG-509) BE - Create/ Update Tenant - Muncul Error email not valid ketika email address panjang, padahal struktur sudah bentuk email

pull/2/head
ashar 2024-06-11 11:38:28 +07:00
parent a126dd267c
commit f5c4b1ffdf
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export class TenantDto extends BaseStatusDto implements UserEntity {
password: string; password: string;
@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;