docs: fix missing hooks property (#10008)
This commit is contained in:
@@ -85,7 +85,7 @@ For example:
|
|||||||
```ts title="src/workflows/hooks/product-created.ts"
|
```ts title="src/workflows/hooks/product-created.ts"
|
||||||
import { createProductsWorkflow } from "@medusajs/medusa/core-flows"
|
import { createProductsWorkflow } from "@medusajs/medusa/core-flows"
|
||||||
|
|
||||||
createProductsWorkflow.productCreated(
|
createProductsWorkflow.hooks.productCreated(
|
||||||
async ({ productId }, { container }) => {
|
async ({ productId }, { container }) => {
|
||||||
// TODO perform an action
|
// TODO perform an action
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user