Skip to content

Commit

Permalink
updated amount limit to 100000
Browse files Browse the repository at this point in the history
  • Loading branch information
egerj committed Apr 1, 2021
1 parent e9e5dd2 commit 40fdbd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/order/OrderValidator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { UnprocessableEntityException } from '@nestjs/common';
import { PlaceOrderDto } from './dtos/PlaceOrder.dto';

const MAX_AMOUNT = 10000;
const MAX_AMOUNT = 100000;
const MAX_DIGITS = 2;

export class OrderValidator {
Expand All @@ -25,7 +25,7 @@ export class OrderValidator {

if (amount < 0 || amount > MAX_AMOUNT) {
throw new UnprocessableEntityException(
'Amount needs to be between 1 and 10000.',
'Amount needs to be between 1 and 100000.',
);
}

Expand Down

0 comments on commit 40fdbd9

Please sign in to comment.