From c82ea8621e0e5ead737f72c4aacdd4c09fdc9df8 Mon Sep 17 00:00:00 2001 From: Junhyeong Kim Date: Fri, 22 Sep 2023 18:11:16 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A9=94=EC=9D=B8=20=EA=B3=B5=EC=A7=80?= =?UTF-8?q?=20=EC=A0=95=EB=A0=AC=20(#158)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wafflestudio/csereal/core/main/database/MainRepository.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/wafflestudio/csereal/core/main/database/MainRepository.kt b/src/main/kotlin/com/wafflestudio/csereal/core/main/database/MainRepository.kt index e7bda26d..776f13f5 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/core/main/database/MainRepository.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/core/main/database/MainRepository.kt @@ -64,7 +64,7 @@ class MainRepositoryImpl( ) ).from(noticeEntity) .where(noticeEntity.isDeleted.eq(false), noticeEntity.isPrivate.eq(false)) - .orderBy(noticeEntity.isPinned.desc()).orderBy(noticeEntity.createdAt.desc()) + .orderBy(noticeEntity.createdAt.desc()) .limit(6).fetch() } @@ -82,7 +82,7 @@ class MainRepositoryImpl( .rightJoin(tagInNoticeEntity).on(noticeTagEntity.tag.eq(tagInNoticeEntity)) .where(noticeTagEntity.tag.name.eq(tagEnum)) .where(noticeEntity.isDeleted.eq(false), noticeEntity.isPrivate.eq(false)) - .orderBy(noticeEntity.isPinned.desc()).orderBy(noticeTagEntity.notice.createdAt.desc()) + .orderBy(noticeTagEntity.notice.createdAt.desc()) .limit(6).distinct().fetch() }