@@ -3,6 +3,7 @@ package org.gitanimals.notification.infra
33import org.gitanimals.core.redis.RedisPubSubChannel
44import org.gitanimals.notification.app.NotApprovedQuizCreatedMessageListener
55import org.gitanimals.notification.app.QuizCreatedMessageListener
6+ import org.gitanimals.notification.app.SlackDeadLetterMessageListener
67import org.gitanimals.notification.app.SlackRepliedMessageListener
78import org.springframework.context.annotation.Bean
89import org.springframework.context.annotation.Configuration
@@ -16,6 +17,7 @@ class RedisMessageListenerConfiguration(
1617 private val quizCreatedMessageListener : QuizCreatedMessageListener ,
1718 private val notApprovedQuizCreatedMessageListener : NotApprovedQuizCreatedMessageListener ,
1819 private val slackRepliedMessageListener : SlackRepliedMessageListener ,
20+ private val slackDeadLetterMessageListener : SlackDeadLetterMessageListener ,
1921) {
2022
2123 @Bean
@@ -34,6 +36,10 @@ class RedisMessageListenerConfiguration(
3436 slackRepliedMessageListener,
3537 ChannelTopic (RedisPubSubChannel .SLACK_REPLIED ),
3638 )
39+ this .addMessageListener(
40+ slackDeadLetterMessageListener,
41+ ChannelTopic (RedisPubSubChannel .DEAD_LETTER_OCCURRED ),
42+ )
3743 }
3844 }
3945}
0 commit comments