Refactor Leaderboard functionality: rename methods and endpoints for consistency
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-01-11 13:34:17 +01:00
parent 0630bdd2a5
commit 6bb438f786
6 changed files with 161 additions and 21 deletions
@@ -17,6 +17,8 @@ public class StatsService {
userRepository.findAll().forEach( user -> {
user.getStats().resetStats(Timeframe.WEEKLY);
});
System.out.println("###### Weekly stats have been reset. ######");
}
@Scheduled(cron = "0 0 0 1 * ?")
@@ -24,5 +26,7 @@ public class StatsService {
userRepository.findAll().forEach( user -> {
user.getStats().resetStats(Timeframe.MONTHLY);
});
System.out.println("###### Monthly stats have been reset. ######");
}
}