FIX: port can be either string or number on connection test ping

This commit is contained in:
Gabriel Rosa
2022-09-01 09:15:06 -03:00
parent 2968647e73
commit 5b6673a367
2 changed files with 2 additions and 4 deletions
@@ -1,5 +1,5 @@
import { ApiProperty, ApiPropertyOptional, OmitType } from '@nestjs/swagger';
import { IsString, IsOptional, IsNumber, Max } from 'class-validator';
import { IsString, IsOptional } from 'class-validator';
import { DatabaseConnectionPropertiesDto } from 'src/modules/connection/dtos/connection';
import { CreateConnectionDto } from 'src/modules/connection/dtos/connection';
export class ColumnDto {
@@ -29,8 +29,6 @@ export class ConnectionTestPingReq {
host: string;
@ApiPropertyOptional()
@IsNumber()
@Max(65535)
@IsOptional()
port: number;
+1 -1
View File
File diff suppressed because one or more lines are too long