From bbc47dc5dfebea9cd7abef1bcbdb0e72c9dd072e Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 12 Nov 2024 10:53:12 +0200 Subject: [PATCH] docs: fix missing hooks property (#10008) --- .../advanced-development/workflows/workflow-hooks/page.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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