docs: fix incorrect path (#11435)
This commit is contained in:
1 parent
b24af3ad9a
commit
63229d1897
1 file changed
+2
-2
@@ -276,9 +276,9 @@ You'll next execute the workflow in the hook handler.
|
|||||||
|
|
||||||
You can now consume the `productsCreated` hook, which is executed in the `createProductsWorkflow` after the product is created.
|
You can now consume the `productsCreated` hook, which is executed in the `createProductsWorkflow` after the product is created.
|
||||||
|
|
||||||
To consume the hook, create the file `src/workflow/hooks/product-created.ts` with the following content:
|
To consume the hook, create the file `src/workflows/hooks/product-created.ts` with the following content:
|
||||||
|
|
||||||
```ts title="src/workflow/hooks/product-created.ts" collapsibleLines="1-6" expandButtonLabel="Show Imports"
|
```ts title="src/workflows/hooks/product-created.ts" collapsibleLines="1-6" expandButtonLabel="Show Imports"
|
||||||
import { createProductsWorkflow } from "@medusajs/medusa/core-flows"
|
import { createProductsWorkflow } from "@medusajs/medusa/core-flows"
|
||||||
import {
|
import {
|
||||||
createCustomFromProductWorkflow,
|
createCustomFromProductWorkflow,
|
||||||
|
|||||||
Reference in new issue
Block a user