docs: fix missing hooks property (#10008)

This commit is contained in:
Shahed Nasser
2024-11-12 10:53:12 +02:00
committed by GitHub
parent 904f0926f1
commit bbc47dc5df

View File

@@ -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