diff --git a/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/ScheduledNotificationSender.kt b/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/ScheduledNotificationSender.kt index 4da3ecb..5ec2395 100644 --- a/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/ScheduledNotificationSender.kt +++ b/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/ScheduledNotificationSender.kt @@ -10,7 +10,7 @@ import org.springframework.stereotype.Component class ScheduledNotificationSender(private val notificationService: NotificationService) { @Scheduled(cron = "0 0 22 * * ?") fun sendDailyNotification() { - notificationService.sendMessageToAllMember(MessageSendRequest.DAILY_QUESTION_MESSAGE()) + notificationService.sendMessageToAllMember(MessageSendRequest.dailyQuestionMessage()) log.info { "오늘의 질문 알림을 보냈습니다." } } } \ No newline at end of file diff --git a/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/dto/request/MessageSendRequest.kt b/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/dto/request/MessageSendRequest.kt index 55fa1b5..076cfdf 100644 --- a/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/dto/request/MessageSendRequest.kt +++ b/plu-api/src/main/kotlin/com/th/plu/api/controller/notification/dto/request/MessageSendRequest.kt @@ -2,7 +2,7 @@ package com.th.plu.api.controller.notification.dto.request data class MessageSendRequest(var title: String, var body: String) { companion object { - fun dailySendMessage() = MessageSendRequest( + fun dailyQuestionMessage() = MessageSendRequest( title = "오늘의 질문 알림", body = "오늘의 질문에 답할 시간입니다." )