This commit is contained in:
@@ -173,16 +173,19 @@ public class UserController {
|
||||
|
||||
StatScope scope = body.getScope();
|
||||
boolean awardBadges = body.getAwardBadges() == null || body.getAwardBadges();
|
||||
boolean awardChallenges = body.getAwardChallenges() == null || body.getAwardChallenges();
|
||||
|
||||
this.statsService.addStatsToCurrentUser(
|
||||
body.getStat(),
|
||||
body.getValue(),
|
||||
scope,
|
||||
awardBadges
|
||||
awardBadges,
|
||||
awardChallenges
|
||||
);
|
||||
|
||||
return ResponseEntity.ok().build();
|
||||
}
|
||||
|
||||
@Operation(summary = "get stats of current user",
|
||||
description = "Returns all stats of a user")
|
||||
@ApiResponses(value = {
|
||||
|
||||
Reference in New Issue
Block a user