From 7255df6756b5ea53c6938d6854e3409100b7645a Mon Sep 17 00:00:00 2001 From: JIN-076 Date: Mon, 19 Feb 2024 18:49:56 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20pageable=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogakgo/domain/profile/application/ProfileCardService.java | 2 +- .../oeid/mogakgo/domain/project/application/ProjectService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); // 요청할 때마다 랜덤 정렬