docs: fix ModuleRegistrationName import (#8434)

Closes #8433
This commit is contained in:
Viktor Bakurin
2024-08-05 07:24:27 +00:00
committed by GitHub
parent 8cb416e661
commit be8afcaa63
26 changed files with 30 additions and 30 deletions
@@ -48,6 +48,6 @@ When you resolve the `ModuleRegistrationName.PRODUCT` (or `productModuleService`
<Note title="Tip">
To resolve the main service of any commerce module, use the registration name defined in the `ModuleRegistrationName` enum imported from `@medusajs/modules-sdk`.
To resolve the main service of any commerce module, use the registration name defined in the `ModuleRegistrationName` enum imported from `@medusajs/utils`.
</Note>
@@ -83,7 +83,7 @@ For example:
export const highlights = [
["7", "container", "Recieve the Medusa Container in the object parameter."],
["10", "resolve", "Resolve the Product Module's main service."],
["10", "ModuleRegistrationName.PRODUCT", "The module's registration name imported from `@medusajs/modules-sdk`."]
["10", "ModuleRegistrationName.PRODUCT", "The module's registration name imported from `@medusajs/utils`."]
]
```ts title="src/subscribers/product-created.ts" highlights={highlights}
@@ -19,7 +19,7 @@ export const highlights = [
[
"10",
"ModuleRegistrationName.PRODUCT",
"The resource registration name imported from `@medusajs/modules-sdk`.",
"The resource registration name imported from `@medusajs/utils`.",
],
]
@@ -87,7 +87,7 @@ For example:
export const highlights = [
["11", "resolve", "Resolve the Product Module's main service."],
["11", "ModuleRegistrationName.PRODUCT", "The module's registration name imported from `@medusajs/modules-sdk`."]
["11", "ModuleRegistrationName.PRODUCT", "The module's registration name imported from `@medusajs/utils`."]
]
```ts title="src/jobs/hello-world.ts" highlights={highlights}
+1 -1
View File
@@ -230,7 +230,7 @@ export const highlights = [
[
"12",
"ModuleRegistrationName.PRODUCT",
"The resource registration name imported from `@medusajs/modules-sdk`.",
"The resource registration name imported from `@medusajs/utils`.",
],
]