From 480461636d0b19f7adbca8cc2abf35515488239c Mon Sep 17 00:00:00 2001 From: richard483 Date: Wed, 24 Jan 2024 03:40:19 +0700 Subject: [PATCH] updated status already paid --- package-lock.json | 4 ++-- package.json | 2 +- src/contract/contract.service.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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,