diff --git a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt index 8f4d07c5..1f3e292e 100644 --- a/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/music/listener/MusicApplicationEventListener.kt @@ -28,9 +28,9 @@ class MusicApplicationEventListener( ) @TransactionalEventListener(phase = TransactionPhase.AFTER_COMPLETION) fun onEvent(event: MusicDotoriEvent) { - log.info("published music event: {} eventType: {}", event.id, event.eventType) + log.info("published music event: {} eventType: MUSIC", event.id) CompletableFuture.runAsync { - eventPublisher.publishEvent(event,event.eventType.toString()) + eventPublisher.publishEvent(event, "MUSIC") } } diff --git a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt index 808f1a5e..b47eef52 100644 --- a/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt +++ b/src/main/kotlin/com/dotori/v2/domain/reserve/ReserveEventListener.kt @@ -28,9 +28,9 @@ class ReserveEventListener( ) @TransactionalEventListener(phase = TransactionPhase.AFTER_COMPLETION) fun onEvent(event: ReserveDotoriEvent) { - log.info("published reserve event: {} eventType: {}", event.id, event.eventType) + log.info("published reserve event: {} eventType: RESERVE", event.id) CompletableFuture.runAsync { - eventPublisher.publishEvent(event,event.eventType.toString()) + eventPublisher.publishEvent(event, "RESERVE") } }