diff --git a/src/aggregate-root.ts b/src/aggregate-root.ts index f3cee4e7..5322de51 100644 --- a/src/aggregate-root.ts +++ b/src/aggregate-root.ts @@ -46,7 +46,7 @@ export abstract class AggregateRoot { handler && handler.call(this, event); } - private getEventHandler( + protected getEventHandler( event: T, ): Function | undefined { const handler = `on${this.getEventName(event)}`;