We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e9a24 commit 25aa4caCopy full SHA for 25aa4ca
src/main/kotlin/andreas311/miso/domain/notification/application/scheduler/EnvironmentNotificationScheduler.kt
@@ -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