From d5750d64a506fa104db66b217712ec3cf7aacfc1 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 11 Nov 2024 11:05:21 +0300 Subject: [PATCH] docs: fix missing hooks property --- .../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