Skip to content

Commit 74d8ef1

Browse files
committed
use IsInt for port validation
1 parent 2a5b8f8 commit 74d8ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config/config.env.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { IsNumber, IsOptional, IsString } from 'class-validator';
1+
import { IsInt, IsOptional, IsString } from 'class-validator';
22

33
export class ConfigEnv {
44
@IsString()
55
@IsOptional()
66
API_BASE = '/v5/finance';
77

8-
@IsNumber()
8+
@IsInt()
99
@IsOptional()
1010
PORT = 3000;
1111

0 commit comments

Comments
 (0)