Skip to content

Commit

Permalink
[FEAT] pageable 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JIN-076 committed Feb 19, 2024
1 parent a14c337 commit 7255df6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public CursorPaginationResult<UserPublicApiResponse> getRandomOrderedProfileCard

CursorPaginationResult<UserPublicApiResponse> projects = profileCardRepository
.findByConditionWithPagination(
null, region, null
null, region, pageable
);
Collections.shuffle(projects.getData());
return projects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public CursorPaginationResult<ProjectDetailAPIRes> getRandomOrderedProjectsByReg
// 선택한 구역에 대해 Pending 상태인 프로젝트 리스트를 조회할 수 있음
CursorPaginationResult<ProjectDetailAPIRes> projects = projectJpaRepository
.findByConditionWithPagination(
null, region, ProjectStatus.PENDING, null
null, region, ProjectStatus.PENDING, pageable
);

// 요청할 때마다 랜덤 정렬
Expand Down

0 comments on commit 7255df6

Please sign in to comment.