Skip to content

Commit

Permalink
⚡️: fix 오늘의 질문 관련 오류 수정 #36
Browse files Browse the repository at this point in the history
  • Loading branch information
sookyungg committed Apr 5, 2024
1 parent b2636cf commit 7704296
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 { "오늘의 질문 알림을 보냈습니다." }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "오늘의 질문에 답할 시간입니다."
)
Expand Down

0 comments on commit 7704296

Please sign in to comment.