diff --git a/package-lock.json b/package-lock.json index 0937284..db99e91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "backend-8tech", - "version": "4.2.3", + "version": "4.2.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "backend-8tech", - "version": "4.2.3", + "version": "4.2.4", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^9.4.3", diff --git a/package.json b/package.json index d797ee6..c28bb26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backend-8tech", - "version": "4.2.3", + "version": "4.2.4", "description": "", "author": "8tech", "private": true, diff --git a/src/contract/contract.service.ts b/src/contract/contract.service.ts index 50c64d8..b6328e1 100644 --- a/src/contract/contract.service.ts +++ b/src/contract/contract.service.ts @@ -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,