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;