From 1d26701e9191ffc9da10837a4fd3b1dba2446212 Mon Sep 17 00:00:00 2001 From: wellbeing-dough Date: Sat, 3 Feb 2024 23:38:12 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20:=20=EB=B6=81=EB=A7=88=ED=81=AC?= =?UTF-8?q?=ED=95=9C=20=EC=8A=A4=ED=84=B0=EB=94=94=20=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=EA=B8=80=20=EB=A7=88=EA=B0=90=EB=90=9C=EA=B1=B0=20=EB=A7=A8=20?= =?UTF-8?q?=EB=B0=91=EC=9C=BC=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../studypost/repository/StudyPostRepositoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryImpl.java b/src/main/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryImpl.java index 504ea9a0..c4f9e4fd 100644 --- a/src/main/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryImpl.java +++ b/src/main/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryImpl.java @@ -72,7 +72,7 @@ public List findPostsByBookmarked(Long userId, Pageable page .from(post) .innerJoin(bookmark).on(bookmark.postId.eq(post.id)) .where(bookmark.userId.eq(userId)) - .orderBy(post.createdDate.desc()) + .orderBy(post.close.asc(), post.createdDate.desc()) .offset(pageable.getOffset()) .limit(pageable.getPageSize() + 1);