From b3b14ee6a8d4bd775ceaf4ea660ad82d92c4d10d Mon Sep 17 00:00:00 2001 From: Patryk Zielinski Date: Thu, 13 Aug 2020 15:58:25 +0200 Subject: [PATCH] fix(): change aggregate root geteventhandler method access modifier Changes AggregateRoot's getEventHandler method access modifier from private to protected. It will allow overwriting getEventHandler method in subclasses. --- src/aggregate-root.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}`;