Skip to content

Commit

Permalink
Merge pull request #71 from richard483/fix-1
Browse files Browse the repository at this point in the history
update contract status when payment paid
  • Loading branch information
richard483 authored Jan 23, 2024
2 parents cd4f798 + ac12eee commit 3586d8e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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.2",
"version": "4.2.3",
"description": "",
"author": "8tech",
"private": true,
Expand Down
3 changes: 3 additions & 0 deletions src/contract/contract.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ export class ContractService {
HttpStatus.BAD_REQUEST,
);
}
await this.contractRepository.update(contract.id, {
status: 'COMPLETED',
});
await this.paymentService.updatePaymentStatus(
payment.id,
PaymentStatus.PAID,
Expand Down

0 comments on commit 3586d8e

Please sign in to comment.