diff --git a/www/apps/book/app/learn/fundamentals/events-and-subscribers/page.mdx b/www/apps/book/app/learn/fundamentals/events-and-subscribers/page.mdx index 5c3b4eb4c7..c6016d19b4 100644 --- a/www/apps/book/app/learn/fundamentals/events-and-subscribers/page.mdx +++ b/www/apps/book/app/learn/fundamentals/events-and-subscribers/page.mdx @@ -34,7 +34,7 @@ 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/order-placed.ts` with the following content: +For example, create the file `src/subscribers/product-created.ts` with the following content: ![Example of subscriber file in the application's directory structure](https://res.cloudinary.com/dza7lstvk/image/upload/v1732866244/Medusa%20Book/subscriber-dir-overview_pusyeu.jpg) diff --git a/www/apps/book/public/llms-full.txt b/www/apps/book/public/llms-full.txt index efa1edac58..13e7386e11 100644 --- a/www/apps/book/public/llms-full.txt +++ b/www/apps/book/public/llms-full.txt @@ -2589,7 +2589,7 @@ Find a list of all emitted events in [this reference](https://docs.medusajs.com/ 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/order-placed.ts` with the following content: +For example, create the file `src/subscribers/product-created.ts` with the following content: ![Example of subscriber file in the application's directory structure](https://res.cloudinary.com/dza7lstvk/image/upload/v1732866244/Medusa%20Book/subscriber-dir-overview_pusyeu.jpg)