chore(link-modules): backward compatible links (#12062)
What: * Add `hasMany` for links that accepted that in the past. That way we don't block marketplaces to link 1 cart to multiple orders and carts with split payment.
This commit is contained in:
1 parent
d3e725a907
commit
2270f29ec5
3 files changed
+7
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/link-modules": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore(link-modules): backward compatible links
|
||||||
@@ -35,6 +35,7 @@ export const CartPaymentCollection: ModuleJoinerConfig = {
|
|||||||
args: {
|
args: {
|
||||||
methodSuffix: "PaymentCollections",
|
methodSuffix: "PaymentCollections",
|
||||||
},
|
},
|
||||||
|
hasMany: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extends: [
|
extends: [
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export const OrderCart: ModuleJoinerConfig = {
|
|||||||
args: {
|
args: {
|
||||||
methodSuffix: "Orders",
|
methodSuffix: "Orders",
|
||||||
},
|
},
|
||||||
|
hasMany: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
serviceName: Modules.CART,
|
serviceName: Modules.CART,
|
||||||
|
|||||||
Reference in new issue
Block a user