fix(medusa-payment-stripe): Added withTransaction to capturePaymentIfNecessary (#3930)

* Added withTransaction to capturePaymentIfNecessary

* Removed catch from idempotencyKey.retrieve in completeCartIfNecessary

* Synced with upstream develop branch

---------

Co-authored-by: Didier Guyon <didierguyon@Didiers-MacBook-Pro.local>
Co-authored-by: pepijn-vanvlaanderen <pepijn@webbers.com>
This commit is contained in:
Didier Guyon
2023-05-18 08:46:09 +02:00
committed by GitHub
parent a91987fab3
commit 186b7d2773
@@ -194,6 +194,7 @@ async function capturePaymentIfNecessary({
}) {
const orderService = container.resolve("orderService")
const order = await orderService
.withTransaction(transactionManager)
.retrieveByCartId(cartId)
.catch(() => undefined)