docs: fixes following QA testing (#9690)

This commit is contained in:
Shahed Nasser
2024-10-22 18:20:21 +03:00
committed by GitHub
parent b2122c4073
commit 731309e87a
40 changed files with 70 additions and 66 deletions
@@ -76,7 +76,7 @@ This method accepts as a first parameter filters to apply on the retrieved data,
<Note>
Learn more about the `listAndCount` method and its parameters in [this reference](!resources!service-factory-reference/methods/listAndCount).
Learn more about the `listAndCount` method and its parameters in [this reference](!resources!/service-factory-reference/methods/listAndCount).
</Note>
@@ -94,7 +94,7 @@ import BrandModuleService from "../../modules/brand/service"
createProductsWorkflow.hooks.productsCreated(
(async ({ products, additional_data }, { container }) => {
if (!additional_data.brand_id) {
if (!additional_data?.brand_id) {
return new StepResponse([], [])
}
@@ -215,7 +215,7 @@ In the Medusa application's logs, you'll find the message `Linked brand to produ
---
## Worflows and API Routes References
## Workflows and API Routes References
Medusa exposes hooks in many of its workflows that you can consume to add custom logic.
@@ -140,7 +140,7 @@ In the compensation function, you undo the step's action using the `deleteBrand`
### Add Step to Workflow
Finally, add the step to the `syncBrandToSystemWorkflow` in `src/workflows/sync-brand-to-system/index.ts`:
Finally, add this step to the `syncBrandToSystemWorkflow` in `src/workflows/sync-brand-to-system/index.ts`:
```ts title="src/workflows/sync-brand-to-system/index.ts"
// other imports...
@@ -6,7 +6,7 @@ export const metadata = {
The previous examples under the Customization chapter explained more about customizing Medusa for a realistic use case.
Your learning journey doesn't end here, and this only presents some of Medusa's powerful feature.
Your learning journey doesn't end here, and this only presents some of Medusa's powerful features.
This chapter guides you into how to continue your learning journey, and what resources will be helpful for you during your development.
@@ -33,6 +33,6 @@ Some of these guides and references are:
## More Examples in Recipes
In the Development Resources documentation, you'll also find step-by-step guides of different use cases, such as building a marketplace, digital products, and more.
In the Development Resources documentation, you'll also find step-by-step guides for different use cases, such as building a marketplace, digital products, and more.
Refer to the [Recipes](!resources!/recipes) documentation to learn more.