Skip to content
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

[fix/4-getMyPage6] 쥬시 완료, 쥬시 대기 목록 정렬 수정 #51

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

Haeun-Y
Copy link
Collaborator

@Haeun-Y Haeun-Y commented Sep 25, 2023

📌 이슈 번호

#4

📢 의논 사항

  • none

@Haeun-Y Haeun-Y self-assigned this Sep 25, 2023
Copy link
Member

@JoongHyun-Kim JoongHyun-Kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pageable pageable = PageRequest.of(Math.max(requestPageNum-1, 0), 10, Sort.by(sorts));
return postRepository.findByQuestioner_UserIdxAndIsJuicyTrueAndStatusEquals(user.getUserIdx(),"active", pageable).map(post ->
GetJunyQuestionResponse.fromPost(post, 3L, true));
}
else {//쥬시 대기
sorts.add(Sort.Order.desc("createdDate"));
sorts.add(Sort.Order.asc("createdDate"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기획적으로 오래된 순으로 정렬하는 것으로 결정됐나용?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Haeun-Y Haeun-Y merged commit 60c094d into develop Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants