docs: various improvements to introduction guides (#14398)
This commit is contained in:
@@ -34,11 +34,9 @@ Find a list of all emitted events in [this reference](!resources!/references/eve
|
||||
|
||||
You create a subscriber in a TypeScript or JavaScript file under the `src/subscribers` directory. The file exports the function to execute and the subscriber's configuration that indicate what event(s) it listens to.
|
||||
|
||||
For example, create the file `src/subscribers/product-created.ts` with the following content:
|
||||
For example, create the file `src/subscribers/order-placed.ts` with the following content:
|
||||
|
||||

|
||||
|
||||
```ts title="src/subscribers/product-created.ts"
|
||||
```ts title="src/subscribers/order-placed.ts"
|
||||
import { SubscriberArgs, type SubscriberConfig } from "@medusajs/framework"
|
||||
import { sendOrderConfirmationWorkflow } from "../workflows/send-order-confirmation"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user