Skip to content

Commit

Permalink
Merge pull request #85 from Alpha-Damyo/develop
Browse files Browse the repository at this point in the history
Main merge
  • Loading branch information
BlueBerrySoda authored Jun 6, 2024
2 parents 6b588ff + e2848db commit 5931bb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public void updateInfo(UpdateInfoRequest updateInfoRequest, UserDetailsImpl deta
() -> new AreaException(NOT_FOUND_ID)
);
User user = details.getUser();
infoRepository.save(updateInfoRequest.toEntity(sa, user));
userService.updateContribution(user.getId(), POST_INFO_CONTRIBUTION_INCREMENT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public AllRankResponse getContestRanking(UUID userId) {

int startIndex = Math.max(0, targetIdx - 3);
int endIndex = Math.min(rank.size(), targetIdx + 4);
int topIndex = Math.min(4, rank.size());
int topIndex = Math.min(3, rank.size());

List<LikesRankResponse> topUsers = IntStream.range(0, topIndex)
.mapToObj(rank::get)
Expand Down

0 comments on commit 5931bb2

Please sign in to comment.