Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 4, 2025
1 parent a55147a commit ab624e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public String profile(Model model) {
var dto = userService.toDto(userService.getUser((StpUtil.getLoginIdAsLong())).get());
model.addAttribute("user", dto);
var userScore = userScoreService.getUserScoreBytes(userService.getUser((StpUtil.getLoginIdAsLong())).get());
model.addAttribute("userScoreBytes.display", FileUtils.byteCountToDisplaySize(userScore));
model.addAttribute("userScoreBytes.raw", userScore);
model.addAttribute("userScoreBytesDisplay", FileUtils.byteCountToDisplaySize(userScore));
model.addAttribute("userScoreBytesRaw", userScore);
return "user/profile";
}
}

0 comments on commit ab624e0

Please sign in to comment.