diff --git a/www/apps/book/app/learn/advanced-development/workflows/workflow-hooks/page.mdx b/www/apps/book/app/learn/advanced-development/workflows/workflow-hooks/page.mdx index 76f346ac4bca4..a31216d5ed9fb 100644 --- a/www/apps/book/app/learn/advanced-development/workflows/workflow-hooks/page.mdx +++ b/www/apps/book/app/learn/advanced-development/workflows/workflow-hooks/page.mdx @@ -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