Skip to content

Commit

Permalink
fix error on publishAll with publishAlsoLocally (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
prxmat committed Jun 29, 2020
1 parent b5abd55 commit 429e4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cqrs/event-store.bus.ts
Expand Up @@ -126,7 +126,7 @@ export class EventStoreBus
_ => {
// Forward to local event handler and saga
if (this.config.publishAlsoLocally) {
events.forEach(this.subject$.next);
events.forEach((event) => this.subject$.next(event));
}
},
err => {
Expand Down

0 comments on commit 429e4a7

Please sign in to comment.