From 84e65d2599e2d786dbfb7181af69d2b1bc9409f5 Mon Sep 17 00:00:00 2001 From: ashar Date: Tue, 18 Jun 2024 08:54:09 +0700 Subject: [PATCH] fix(SPG-535) BE - Update Tenant - Muncul warning email must be an email ketika save padahal email tidak diubah (sama dengan ketika create) --- .../user-related/tenant/infrastructure/dto/update-tenant.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/user-related/tenant/infrastructure/dto/update-tenant.dto.ts b/src/modules/user-related/tenant/infrastructure/dto/update-tenant.dto.ts index 4f85329..14487dc 100644 --- a/src/modules/user-related/tenant/infrastructure/dto/update-tenant.dto.ts +++ b/src/modules/user-related/tenant/infrastructure/dto/update-tenant.dto.ts @@ -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;