Skip to content

Commit e82645b

Browse files
authored
docs: typo fixes in execute workflow section (#10911)
1 parent 01acf9e commit e82645b

File tree

1 file changed

+3
-3
lines changed
  • www/apps/book/app/learn/fundamentals/workflows

1 file changed

+3
-3
lines changed

www/apps/book/app/learn/fundamentals/workflows/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ To execute the workflow, invoke it passing the [Medusa container](../medusa-cont
154154
</CodeTab>
155155
<CodeTab label="Subscriber" value="subscriber">
156156

157-
```ts title="src/subscribers/customer-created.ts" highlights={[["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]} collapsibleLines="1-6" expandButtonLabel="Show Imports"
157+
```ts title="src/subscribers/order-placed.ts" highlights={[["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]} collapsibleLines="1-6" expandButtonLabel="Show Imports"
158158
import {
159159
type SubscriberConfig,
160160
type SubscriberArgs,
161161
} from "@medusajs/framework"
162162
import myWorkflow from "../workflows/hello-world"
163163

164-
export default async function handleCustomerCreate({
164+
export default async function handleOrderPlaced({
165165
event: { data },
166166
container,
167167
}: SubscriberArgs<{ id: string }>) {
@@ -290,4 +290,4 @@ You can now execute this workflow in a custom API route, scheduled job, or subsc
290290

291291
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.
292292

293-
</Note>
293+
</Note>

0 commit comments

Comments
 (0)