chore: refactor payment collection setPaymentSession (#2928)

**What**

Only use `setPaymentSessionsBatch` in `setPaymentSession` to reuse the logic as it is the same behavior. One for a unique session and the other one for multiple sessions.
This refactoring reduce the risk of introducing bugs when working around payment session if it needs to be changed (which is currently happening as part of the payment refactoring) and having to change it in less places instead of more and more places
This commit is contained in:
Adrien de Peretti
2023-01-05 16:22:12 +01:00
committed by GitHub
parent c07ffb6165
commit 3d200c41f9
3 changed files with 39 additions and 83 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
chore: refactor payment collection setPaymentSession