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"
|
||||
import { createProductsWorkflow } from "@medusajs/medusa/core-flows"
|
||||
|
||||
createProductsWorkflow.productCreated(
|
||||
createProductsWorkflow.hooks.productCreated(
|
||||
async ({ productId }, { container }) => {
|
||||
// TODO perform an action
|
||||
|
||||
|
||||
Reference in New Issue
Block a user