From af1d39e8070e0d34ad6251f0bb233f9bd63586f7 Mon Sep 17 00:00:00 2001 From: elyudwo Date: Sun, 28 Jan 2024 15:36:29 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20:=20=EB=82=B4=EA=B0=80=20=EC=93=B4?= =?UTF-8?q?=20=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C?= =?UTF-8?q?=20=EB=A7=88=EA=B0=90=EB=90=9C=20=EA=B2=8C=EC=8B=9C=EA=B8=80=20?= =?UTF-8?q?=ED=9B=84=20=EC=88=9C=EC=9C=84=20=EC=A0=95=EB=A0=AC?= 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 47ad617a..b0c97a0a 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 @@ -95,7 +95,7 @@ public List findByPostedUserId(final Long userId, final Pageab ) .from(post) .where(post.postedUserId.eq(userId)) - .orderBy(post.createdDate.desc()) + .orderBy(post.close.asc(), post.createdDate.desc()) .offset(pageable.getOffset()) .limit(pageable.getPageSize() + 1);