From d13e576bc8b99cbaa56c16394af718b3d998032a Mon Sep 17 00:00:00 2001 From: Leonardo Camargo Date: Tue, 31 Oct 2023 13:10:27 -0300 Subject: [PATCH] fix: change sendConsoleLogHandler --- .../event/customer/handlers/send-console-log-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/event/customer/handlers/send-console-log-handler.ts b/src/domain/event/customer/handlers/send-console-log-handler.ts index 27195a3..5e82ccd 100644 --- a/src/domain/event/customer/handlers/send-console-log-handler.ts +++ b/src/domain/event/customer/handlers/send-console-log-handler.ts @@ -1,8 +1,8 @@ import { EventHandlerInterface } from '../../@shared/event-handler-interface' import { EventInterface } from '../../@shared/event-interface' -import { CustomerCreatedEvent } from '../customer-created-event' +import { CustomerChangeAddressEvent } from '../customer-change-address-event' -export class SendConsoleLogHandler implements EventHandlerInterface { +export class SendConsoleLogHandler implements EventHandlerInterface { handler (event: EventInterface): void { console.log(`endereço do cliente: ${event.eventData.id as string}, ${event.eventData.name as string} alterado para: ${event.eventData.street as string}, ${event.eventData.number.toString() as string}`) }