Skip to content

Commit 25aa4ca

Browse files
committed
✨ 오늘의 환경 정보 관련 푸시 알림 스케쥴러 기능 구현
1 parent 69e9a24 commit 25aa4ca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package andreas311.miso.domain.notification.application.scheduler
2+
3+
import andreas311.miso.domain.notification.application.port.input.EnvironmentNotificationSendUseCase
4+
import org.springframework.scheduling.annotation.Scheduled
5+
import org.springframework.stereotype.Component
6+
7+
@Component
8+
class EnvironmentNotificationScheduler(
9+
private val environmentNotificationSendUseCase: EnvironmentNotificationSendUseCase
10+
) {
11+
@Scheduled(cron = "0 0 13 * * ?")
12+
fun sendEnvironmentNotification() {
13+
environmentNotificationSendUseCase.execute()
14+
}
15+
}

0 commit comments

Comments
 (0)