Skip to content

Commit

Permalink
Merge pull request #37 from Team-Plu/feature/#36
Browse files Browse the repository at this point in the history
โšก๏ธ: fix ์˜ค๋Š˜์˜ ์งˆ๋ฌธ ๊ด€๋ จ ์˜ค๋ฅ˜ ์ˆ˜์ •  #36
  • Loading branch information
sookyungg authored Apr 5, 2024
2 parents b2636cf + 7704296 commit 8f708e5
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 8f708e5

Please sign in to comment.