Skip to content

Commit

Permalink
fix: change sendConsoleLogHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoCamargo31 committed Oct 31, 2023
1 parent 8d29f2a commit d13e576
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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<CustomerCreatedEvent> {
export class SendConsoleLogHandler implements EventHandlerInterface<CustomerChangeAddressEvent> {
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}`)
}
Expand Down

0 comments on commit d13e576

Please sign in to comment.