Skip to content

Commit 549a6f8

Browse files
feat: raise orders volume limit to MAX_SAFE_INTEGER (#36)
1 parent c79f28f commit 549a6f8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

api/src/utils/validator.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ const integerSchema = () => number().integer();
1313
const booleanSchema = () => boolean();
1414

1515
const positiveIntSchema = () =>
16-
integerSchema()
17-
.min(0)
18-
.max(Number.MAX_SAFE_INTEGER - 1);
16+
integerSchema().min(0).max(Number.MAX_SAFE_INTEGER);
1917

2018
const positiveStrictIntSchema = () =>
21-
integerSchema()
22-
.min(1)
23-
.max(Number.MAX_SAFE_INTEGER - 1);
19+
integerSchema().min(1).max(Number.MAX_SAFE_INTEGER);
2420

2521
const timestampSchema = () =>
2622
string().match(

0 commit comments

Comments
 (0)