Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed May 14, 2024
1 parent 659578c commit 17d79b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ describe('schemas', () => {
'missing subaccountNumber',
{ address: defaultAddress },
'subaccountNumber',
'subaccountNumber must be a non-negative integer less than 128',
'subaccountNumber must be a non-negative integer less than 128001',
],
[
'non-integer subaccountNumber',
{ address: defaultAddress, subaccountNumber: positiveNonInteger },
'subaccountNumber',
'subaccountNumber must be a non-negative integer less than 128',
'subaccountNumber must be a non-negative integer less than 128001',
],
[
'negative subaccountNumber',
Expand Down
2 changes: 1 addition & 1 deletion indexer/services/comlink/src/lib/validation/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const CheckParentSubaccountSchema = checkSchema({
parentSubaccountNumber: {
in: ['params', 'query'],
isInt: {
options: { gt: -1, lt: MAX_PARENT_SUBACCOUNTS + 1 },
options: { gt: -1, lt: MAX_PARENT_SUBACCOUNTS },
},
errorMessage: 'parentSubaccountNumber must be a non-negative integer less than 128',
},
Expand Down

0 comments on commit 17d79b2

Please sign in to comment.