Refactor score table to leaderboard, update related models and services 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:
@@ -15,11 +15,13 @@ public class StatsService {
|
||||
private UserRepository userRepository;
|
||||
|
||||
public void addToWeeklyStats(Long userId, String name, int value) {
|
||||
StatsList statsList = this.statsListRepository.findByUserId(userId)
|
||||
/*StatsList statsList = this.statsListRepository.findByUserId(userId)
|
||||
.orElseGet(() -> new StatsList(userRepository.getReferenceById(userId)));
|
||||
|
||||
statsList.getStat(Timeframe.WEEKLY, name).get().addValue(value);
|
||||
statsList.getStat(Timeframe.WEEKLY, name).;
|
||||
this.statsListRepository.save(statsList);
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user