-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
호미 정렬, 슬랙 메시지 prod 환경에서만 오도록 수정 #165
Conversation
public int compareTo(Onboarding o) { | ||
TestScore t1 = getTestScore(); | ||
TestScore t2 = o.getTestScore(); | ||
if (t1 == null && t2 != null) { | ||
return 1; | ||
} | ||
if (t1 != null && t2 == null) { | ||
return -1; | ||
} | ||
if (t1 == null && t2 == null) { | ||
return 0; | ||
} | ||
return t1.getCreatedAt().compareTo(t2.getCreatedAt()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
성향테스트를 안한 사람 중 방 참여 시간 순서로 정렬하는 부분은 없는 것 같아요 ?!
@@ -40,9 +41,10 @@ public UserPersonalityInfoResponse getUsersInfo(Long userId) { | |||
List<Participate> participates = room.getParticipates(); | |||
List<Onboarding> onboardings = participates.stream() | |||
.map(Participate::getOnboarding) | |||
.sorted(Comparator.comparing(onboarding -> onboarding.getTestScore().getUpdatedAt())) | |||
.sorted(Onboarding::compareTo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
크으 ... 간단해지니 좋으네요 ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니당 ! 반영 감사합니다 ~~
✒️ 관련 이슈번호
🔑 Key Changes
📢 To Reviewers