docs: typo fixes in execute workflow section (#10911)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-01-10 18:20:13 +02:00
1 parent 01acf9e700
commit e82645ba55
1 file changed
+2 -2
@@ -154,14 +154,14 @@ To execute the workflow, invoke it passing the [Medusa container](../medusa-cont
</CodeTab>
<CodeTab label="Subscriber" value="subscriber">
```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 }>) {