diff --git a/src/main/java/io/oeid/mogakgo/domain/profile/application/ProfileCardService.java b/src/main/java/io/oeid/mogakgo/domain/profile/application/ProfileCardService.java index b6d2b618..2e184b2c 100644 --- a/src/main/java/io/oeid/mogakgo/domain/profile/application/ProfileCardService.java +++ b/src/main/java/io/oeid/mogakgo/domain/profile/application/ProfileCardService.java @@ -31,7 +31,7 @@ public CursorPaginationResult getRandomOrderedProfileCard CursorPaginationResult projects = profileCardRepository .findByConditionWithPagination( - null, region, null + null, region, pageable ); Collections.shuffle(projects.getData()); return projects; diff --git a/src/main/java/io/oeid/mogakgo/domain/project/application/ProjectService.java b/src/main/java/io/oeid/mogakgo/domain/project/application/ProjectService.java index ee388d84..bdf55dc8 100644 --- a/src/main/java/io/oeid/mogakgo/domain/project/application/ProjectService.java +++ b/src/main/java/io/oeid/mogakgo/domain/project/application/ProjectService.java @@ -117,7 +117,7 @@ public CursorPaginationResult getRandomOrderedProjectsByReg // 선택한 구역에 대해 Pending 상태인 프로젝트 리스트를 조회할 수 있음 CursorPaginationResult projects = projectJpaRepository .findByConditionWithPagination( - null, region, ProjectStatus.PENDING, null + null, region, ProjectStatus.PENDING, pageable ); // 요청할 때마다 랜덤 정렬