Refactor Leaderboard functionality: rename methods and endpoints for consistency
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
This commit is contained in:
@@ -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. ######");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user