From 9b9f7039d0cdb88320d16295c462ff3ee910092f Mon Sep 17 00:00:00 2001 From: dl-00-e8 Date: Sat, 18 May 2024 17:09:41 +0900 Subject: [PATCH] =?UTF-8?q?[#128]=20fix:=20=EC=BF=BC=EB=A6=AC=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gongjakso/server/domain/post/service/PostService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gongjakso/server/domain/post/service/PostService.java b/src/main/java/com/gongjakso/server/domain/post/service/PostService.java index 5e0da741..643c8a22 100644 --- a/src/main/java/com/gongjakso/server/domain/post/service/PostService.java +++ b/src/main/java/com/gongjakso/server/domain/post/service/PostService.java @@ -371,7 +371,7 @@ public GetPostRelation checkPostRelation(Member member, Long postId) { @Transactional public Page getMyScrapProject(Member member, Pageable page){ - Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize(), Sort.by("createdAt").descending()); + Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize()); Page scrapPageList = postScrapRepository.findAllByMemberAndScrapStatusTrueOrderByPostScrapIdDesc(member, pageable); @@ -398,7 +398,7 @@ public Page getMyScrapProject(Member member, Pageable page){ @Transactional public Page getMyScrapContest(Member member, Pageable page){ - Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize(), Sort.by("createdAt").descending()); + Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize()); Page scrapPageList = postScrapRepository.findAllByMemberAndScrapStatusTrueOrderByPostScrapIdDesc(member, pageable);