-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix campaign completion transaction (#536)
* deleted manual donation create method as it is not allowed * added db transaction when updatingDonation that encapsulates the completion of campaign when targetAmount is reached * fixed existing tests * fixed tests with the expected update vault * linter cleanup * removed logging of the full CreateCheckoutSession * simplified updateDonationPayment function by breaking it into smaller ones, so now it is more readable * Update apps/api/src/donations/events/stripe-payment.service.spec.ts Co-authored-by: Slavcho Ivanov <[email protected]> * added find vault in the donation transaction scope * fixed tests failing due to rename --------- Co-authored-by: igoychev <[email protected]> Co-authored-by: Slavcho Ivanov <[email protected]>
- Loading branch information
1 parent
06ea11e
commit 0118cba
Showing
9 changed files
with
294 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.