Skip to content

Commit

Permalink
fix: pass context to publish all
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 8, 2023
1 parent d655df5 commit 818b7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event-bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class EventBus<EventBase extends IEvent = IEvent>
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),
Expand Down

0 comments on commit 818b7db

Please sign in to comment.