Skip to content

Commit

Permalink
docs: typo fixes in execute workflow section
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Jan 10, 2025
1 parent a126f40 commit 0445f3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/apps/book/app/learn/fundamentals/workflows/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>) {
Expand Down Expand Up @@ -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.

</Note>
</Note>

0 comments on commit 0445f3c

Please sign in to comment.