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

게시글 다중 조회 정렬 기준 id 로 변경 #499

Merged
merged 3 commits into from
Sep 18, 2023

Conversation

shb03323
Copy link
Collaborator

관련이슈

참고사항

없습니다.

@shb03323 shb03323 added 💙 BE 백엔드 작업입니다. ♻️ refactor 코드를 개선하고 오겠습니다. labels Sep 18, 2023
@shb03323 shb03323 self-assigned this Sep 18, 2023
@@ -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,
Copy link
Member

Choose a reason for hiding this comment

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

{}로 다 빼는게 어떨까요?

Comment on lines +147 to +148
final PageRequest pageable = PageRequest.of(0, 10, Sort.by(Sort.Order.desc("id")));

Copy link
Member

Choose a reason for hiding this comment

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

createdAt이 정렬 조건에서 빠지면서 repository 테스트 명도 변경되어야 할 거 같아요!

Copy link
Member

@cookienc cookienc left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@hyena0608 hyena0608 left a comment

Choose a reason for hiding this comment

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

굿굿

@hyena0608 hyena0608 merged commit c113a4f into woowacourse-teams:dev/BE Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💙 BE 백엔드 작업입니다. ♻️ refactor 코드를 개선하고 오겠습니다.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants