diff --git a/packages/cqrs/src/event-bus.ts b/packages/cqrs/src/event-bus.ts index 4426cbe91..d2e68c1ef 100644 --- a/packages/cqrs/src/event-bus.ts +++ b/packages/cqrs/src/event-bus.ts @@ -21,8 +21,7 @@ export class EventBus implements IEventBus const eventId = this.getEventId(event) const handler = this.#handlers.get(eventId) if (!handler) { - const eventName = this.getEventName(event) - throw new EventHandlerNotFoundException(eventName) + return } this.publisher.publish(event) return handler.handle(event)