From 0445f3c4982fb9d51b64fe4b8630787c80a91ae8 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 10 Jan 2025 17:11:05 +0200 Subject: [PATCH] docs: typo fixes in execute workflow section --- www/apps/book/app/learn/fundamentals/workflows/page.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/apps/book/app/learn/fundamentals/workflows/page.mdx b/www/apps/book/app/learn/fundamentals/workflows/page.mdx index c28f08fddff2c..c2a2c70d7981f 100644 --- a/www/apps/book/app/learn/fundamentals/workflows/page.mdx +++ b/www/apps/book/app/learn/fundamentals/workflows/page.mdx @@ -154,14 +154,14 @@ To execute the workflow, invoke it passing the [Medusa container](../medusa-cont - ```ts title="src/subscribers/customer-created.ts" highlights={[["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]} collapsibleLines="1-6" expandButtonLabel="Show Imports" + ```ts title="src/subscribers/order-placed.ts" highlights={[["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]} collapsibleLines="1-6" expandButtonLabel="Show Imports" import { type SubscriberConfig, type SubscriberArgs, } from "@medusajs/framework" import myWorkflow from "../workflows/hello-world" - export default async function handleCustomerCreate({ + export default async function handleOrderPlaced({ event: { data }, container, }: SubscriberArgs<{ id: string }>) { @@ -290,4 +290,4 @@ You can now execute this workflow in a custom API route, scheduled job, or subsc Find a full list of the registered resources in the Medusa container and their registration key in [this reference](!resources!/medusa-container-resources). You can use these resources in your custom workflows. - \ No newline at end of file +