fix(): Improve store currency readonly link (#14276)
* fix(): Improve store currency readonly link * fix(): Improve store currency readonly link * fix(): Improve store currency readonly link * Create wicked-rabbits-sparkle.md
This commit is contained in:
committed by
GitHub
parent
d565a92f63
commit
9852a7c74d
5
.changeset/wicked-rabbits-sparkle.md
Normal file
5
.changeset/wicked-rabbits-sparkle.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/link-modules": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(): Improve store currency readonly link
|
||||||
@@ -7,12 +7,12 @@ export const StoreCurrencies: ModuleJoinerConfig = {
|
|||||||
extends: [
|
extends: [
|
||||||
{
|
{
|
||||||
serviceName: Modules.STORE,
|
serviceName: Modules.STORE,
|
||||||
entity: "Store",
|
entity: "StoreCurrency",
|
||||||
relationship: {
|
relationship: {
|
||||||
serviceName: Modules.CURRENCY,
|
serviceName: Modules.CURRENCY,
|
||||||
entity: "Currency",
|
entity: "Currency",
|
||||||
primaryKey: "code",
|
primaryKey: "code",
|
||||||
foreignKey: "supported_currencies.currency_code",
|
foreignKey: "currency_code",
|
||||||
alias: "currency",
|
alias: "currency",
|
||||||
args: {
|
args: {
|
||||||
methodSuffix: "Currencies",
|
methodSuffix: "Currencies",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export const StoreLocales: ModuleJoinerConfig = {
|
|||||||
foreignKey: "locale_code",
|
foreignKey: "locale_code",
|
||||||
alias: "locale",
|
alias: "locale",
|
||||||
args: {
|
args: {
|
||||||
methodSuffix: "StoreLocales",
|
methodSuffix: "Locales",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user