Skip to content

Commit

Permalink
updated status already paid
Browse files Browse the repository at this point in the history
  • Loading branch information
richard483 committed Jan 23, 2024
1 parent ac12eee commit 4804616
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backend-8tech",
"version": "4.2.3",
"version": "4.2.4",
"description": "",
"author": "8tech",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/contract/contract.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class ContractService {
const payout: IPayoutLinkData = await this.paymentService.getPayoutLink(
payment.payoutLinkId,
);
if (['PENDING', 'COMPLETED'].includes(payout.status)) {
if (['COMPLETED'].includes(payout.status)) {
throw new HttpException(
{ payment: 'ALREADY_PAID' },
HttpStatus.BAD_REQUEST,
Expand Down

0 comments on commit 4804616

Please sign in to comment.