Skip to content

Commit 9852a7c

Browse files
authored
fix(): Improve store currency readonly link (medusajs#14276)
* fix(): Improve store currency readonly link * fix(): Improve store currency readonly link * fix(): Improve store currency readonly link * Create wicked-rabbits-sparkle.md
1 parent d565a92 commit 9852a7c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/link-modules": patch
3+
---
4+
5+
fix(): Improve store currency readonly link

packages/modules/link-modules/src/definitions/readonly/store-currency.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ export const StoreCurrencies: ModuleJoinerConfig = {
77
extends: [
88
{
99
serviceName: Modules.STORE,
10-
entity: "Store",
10+
entity: "StoreCurrency",
1111
relationship: {
1212
serviceName: Modules.CURRENCY,
1313
entity: "Currency",
1414
primaryKey: "code",
15-
foreignKey: "supported_currencies.currency_code",
15+
foreignKey: "currency_code",
1616
alias: "currency",
1717
args: {
1818
methodSuffix: "Currencies",

packages/modules/link-modules/src/definitions/readonly/store-locale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const StoreLocales: ModuleJoinerConfig = {
2020
foreignKey: "locale_code",
2121
alias: "locale",
2222
args: {
23-
methodSuffix: "StoreLocales",
23+
methodSuffix: "Locales",
2424
},
2525
},
2626
},

0 commit comments

Comments
 (0)