From 77042969368f6c85869f99429629cd8b74e4fe3e Mon Sep 17 00:00:00 2001 From: Sookyung Kang Date: Sat, 6 Apr 2024 02:16:53 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F:=20fix=20=EC=98=A4=EB=8A=98?= =?UTF-8?q?=EC=9D=98=20=EC=A7=88=EB=AC=B8=20=EA=B4=80=EB=A0=A8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95=20=20#36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/controller/notification/ScheduledNotificationSender.kt | 2 +- .../controller/notification/dto/request/MessageSendRequest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = "오늘의 질문에 답할 시간입니다." )