Skip to content

Commit

Permalink
Merge pull request #397 from patryk-zielinski93/aggregate-root-get-ev…
Browse files Browse the repository at this point in the history
…ent-handler-access-modifier

fix(): change aggregate root geteventhandler method access modifier
  • Loading branch information
kamilmysliwiec authored Aug 20, 2020
2 parents 91bde18 + b3b14ee commit 5ea06ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aggregate-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export abstract class AggregateRoot<EventBase extends IEvent = IEvent> {
handler && handler.call(this, event);
}

private getEventHandler<T extends EventBase = EventBase>(
protected getEventHandler<T extends EventBase = EventBase>(
event: T,
): Function | undefined {
const handler = `on${this.getEventName(event)}`;
Expand Down

0 comments on commit 5ea06ab

Please sign in to comment.