challenges
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-02-03 20:07:47 +01:00
parent 4fe86b6845
commit 60d335f16d
13 changed files with 1028 additions and 3 deletions
@@ -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 = {