From f5c4b1ffdf6b628aaf1570992869c60a5b3c90c5 Mon Sep 17 00:00:00 2001 From: ashar Date: Tue, 11 Jun 2024 11:38:28 +0700 Subject: [PATCH] fix(SPG-509) BE - Create/ Update Tenant - Muncul Error email not valid ketika email address panjang, padahal struktur sudah bentuk email --- .../user-related/tenant/infrastructure/dto/tenant.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/user-related/tenant/infrastructure/dto/tenant.dto.ts b/src/modules/user-related/tenant/infrastructure/dto/tenant.dto.ts index 9474887..48076e4 100644 --- a/src/modules/user-related/tenant/infrastructure/dto/tenant.dto.ts +++ b/src/modules/user-related/tenant/infrastructure/dto/tenant.dto.ts @@ -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;