hotfix(medusa): add line item adjustments for correct calculation in authorizePayment (#1772)
This commit is contained in:
@@ -1200,7 +1200,12 @@ class CartService extends TransactionBaseService<CartService> {
|
||||
|
||||
const cart = await this.retrieve(cartId, {
|
||||
select: ["total"],
|
||||
relations: ["region", "payment_sessions"],
|
||||
relations: [
|
||||
"items",
|
||||
"items.adjustments",
|
||||
"region",
|
||||
"payment_sessions",
|
||||
],
|
||||
})
|
||||
|
||||
if (typeof cart.total === "undefined") {
|
||||
|
||||
Reference in New Issue
Block a user