28 lines
939 B
Kotlin
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()
|
|
// }
|
|
//
|
|
//
|
|
//} |