Skip to content

Commit

Permalink
docs: fix typo in extend core flow
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Dec 23, 2024
1 parent c804ae5 commit ca2d7f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Learn more about the workflow hooks in [this chapter](../../../fundamentals/work

</Note>

The [createProductsWorkflow](!resources!/references/medusa-workflows/createProductsWorkflow) used in the [Create Product API route](!api!/admin#products_postproducts) has a `productsCreated` hook that runs after the product is created. You'll consume this hook to link the created product with the brand specified in the request paramters.
The [createProductsWorkflow](!resources!/references/medusa-workflows/createProductsWorkflow) used in the [Create Product API route](!api!/admin#products_postproducts) has a `productsCreated` hook that runs after the product is created. You'll consume this hook to link the created product with the brand specified in the request parameters.

To consume the `productsCreated` hook, create the file `src/workflows/hooks/created-product.ts` with the following content:

Expand Down

0 comments on commit ca2d7f2

Please sign in to comment.