Files
luminic-space-back-v2/src/main/kotlin/space/luminic/finance/utils/ScheduledTasks.kt
2025-10-31 15:31:55 +03:00

28 lines
939 B
Kotlin

package space.luminic.finance.utils
//
//@Component
//class ScheduledTasks(private val subscriptionService: SubscriptionService,
// private val tokenService: TokenService) {
// private val logger = LoggerFactory.getLogger(ScheduledTasks::class.java)
//
// @Scheduled(cron = "0 30 19 * * *")
// suspend fun sendNotificationOfMoneyFilling() {
// subscriptionService.sendToAll(
// PushMessage(
// title = "Время заполнять траты!🤑",
// body = "Проверь все ли траты внесены!",
// icon = "/apple-touch-icon.png",
// badge = "/apple-touch-icon.png",
// url = "https://luminic.space/transactions/create"
// )
// )
// }
//
// @Scheduled(cron = "0 0 0 * * *")
// fun deleteExpiredTokens() {
// tokenService.deleteExpiredTokens()
// }
//
//
//}