fix(event): Subscriber ID miss usage (#11047)

PARTIALLY RESOLVES FRMW-2876

**What**
Fix wrong usage of the `subscriberId` in the event bus. It happens that the subscriber id coming from the context was not used at all. This issue lead to duplicated event subscriber with the same subscriber id, it also prevent unsubscribing from event since rand id will be assigned.

**NOTE**
This PR does not handle overide strategy for subscribers with the same id. this still needs to be discussed
This commit is contained in:
Adrien de Peretti
2025-01-22 07:40:31 +00:00
committed by GitHub
parent 8119d9964b
commit ecc8efcb04
4 changed files with 75 additions and 31 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/event-bus-local": patch
"@medusajs/utils": patch
---
fix(event): Subscriber ID missusage