Changed Tradeable update service frequency.

This commit is contained in:
Andrew Lalis 2022-02-23 20:55:22 +01:00
parent 9dd0db14e0
commit fe7b6f2906
2 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class TradeableUpdateService {
updatePublicTradeables();
}
@Scheduled(cron = "@midnight")
@Scheduled(cron = "0 0 0,6,12,18 * * *")
public void scheduledUpdate() {
updatePublicTradeables();
}

View File

@ -136,6 +136,7 @@ public class UserService {
}
@Scheduled(cron = "@midnight")
@Transactional
public void removeExpiredActivationTokens() {
activationTokenRepository.deleteAllByExpiresAtBefore(LocalDateTime.now(ZoneOffset.UTC));
}