From 22687d694e47ed1e41128b230788b9408d9c4b1b Mon Sep 17 00:00:00 2001 From: Aditya Erlangga Wibowo <65293996+adityaerlangga@users.noreply.github.com> Date: Wed, 21 May 2025 21:54:43 +0700 Subject: [PATCH] Fix: Incorrect Example File Name in Subscriber Section (#12560) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Solving issue [#12559](https://github.com/medusajs/medusa/issues/12559) this PR corrects the example file name provided in the Events and Subscribers section of the documentation. Previously, the guide instructed users to create a file at: _`src/subscribers/order-placed.ts`_ However, the appropriate file name should be: _`src/subscribers/product-created.ts`_ This fix aligns the documentation with the actual subscriber example, ensuring clarity and preventing confusion for developers following the guide. subscriber-wrong-file-name Changes Updated the incorrect file name in the Subscriber section example from order-placed.ts to product_created.ts. Review @shahednasser – kindly review when you get the chance. Thanks! --- .../book/app/learn/fundamentals/events-and-subscribers/page.mdx | 2 +- www/apps/book/public/llms-full.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)