-
Notifications
You must be signed in to change notification settings - Fork 7
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
게시글 다중 조회 정렬 기준 id 로 변경 #499
Conversation
@@ -89,7 +89,7 @@ public ResponseEntity<Void> deleteByRunnerPostId(@AuthRunnerPrincipal final Runn | |||
|
|||
@GetMapping | |||
public ResponseEntity<PageResponse<RunnerPostResponse.Simple>> readRunnerPostsByReviewStatus( | |||
@PageableDefault(sort = {"createdAt", "id"}, direction = DESC) final Pageable pageable, | |||
@PageableDefault(sort = {"id"}, direction = DESC) final Pageable pageable, |
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.
{}
로 다 빼는게 어떨까요?
final PageRequest pageable = PageRequest.of(0, 10, Sort.by(Sort.Order.desc("id"))); | ||
|
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.
createdAt이 정렬 조건에서 빠지면서 repository 테스트 명도 변경되어야 할 거 같아요!
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.
LGTM!
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.
굿굿
관련이슈
참고사항
없습니다.