From 818b7db44e5594ec76f87b62737a8b888832d26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Tue, 8 Aug 2023 12:39:03 +0200 Subject: [PATCH] fix: pass context to publish all --- src/event-bus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event-bus.ts b/src/event-bus.ts index f9951fb4..2a6c08d2 100644 --- a/src/event-bus.ts +++ b/src/event-bus.ts @@ -89,7 +89,7 @@ export class EventBus context?: TContext, ) { if (this._publisher.publishAll) { - return this._publisher.publishAll(events); + return this._publisher.publishAll(events, context); } return (events || []).map((event) => this._publisher.publish(event, context),