fix(): event emitting (#14196)

* fix(): event emitting

* Create rude-queens-deny.md

* fix(): store subscriber should not be constraint

* Update rude-queens-deny.md

* Add tests to prevent regression
This commit is contained in:
Adrien de Peretti
2025-12-03 08:53:09 +01:00
committed by GitHub
parent fe3c28488c
commit 391d8dc6cd
6 changed files with 151 additions and 8 deletions

View File

@@ -87,10 +87,6 @@ export abstract class AbstractEventBusModuleService
subscriber: EventBusTypes.Subscriber,
context?: EventBusTypes.SubscriberContext
): this {
if (!this.isWorkerMode) {
return this
}
if (typeof subscriber !== `function`) {
throw new Error("Subscriber must be a function")
}