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 +