Skip to content

Commit

Permalink
Merge pull request #29 from Leets-Official/28-fix-검색-기능-수정
Browse files Browse the repository at this point in the history
28 fix 검색 기능 수정
  • Loading branch information
zzu-yaaa authored Jul 30, 2024
2 parents 6f088cc + ac69bd0 commit 07ce5e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package com.leets.commitatobe.domain.user.presentation.dto.response;

public record UserSearchResponse(
String username,
Integer exp,
Integer ranking,
String githubId,
String tierName,
String characterUrl,
Integer consecutiveCommitDays,
Integer totalCommitCount,
Integer todayCommitCount,
Integer ranking
Integer exp,
Integer consecutiveCommitDays
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,11 @@ public UserSearchResponse searchUsersByGithubId(String githubId) {// 유저 이
Tier tier = user.getTier();

return new UserSearchResponse(
user.getUsername(),
user.getExp(),
user.getRanking(),
user.getGithubId(),
tier.getTierName(),
tier.getCharacterUrl(),
user.getConsecutiveCommitDays(),
user.getTotalCommitCount(),
user.getTodayCommitCount(),
user.getRanking()
user.getExp()
);
}

Expand Down

0 comments on commit 07ce5e3

Please sign in to comment.