From 09e5ff7ea56489803ee3ca2ebe1d7d0cd3bebded Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Tue, 30 Jan 2024 23:17:41 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=8D=E8=A6=81=E3=81=AAnull?= =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infrastructure/exposed/ExposedPaginationExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/ExposedPaginationExtension.kt b/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/ExposedPaginationExtension.kt index 44f93ed7..7b0b0c4f 100644 --- a/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/ExposedPaginationExtension.kt +++ b/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/ExposedPaginationExtension.kt @@ -6,7 +6,7 @@ fun Query.withPagination(page: Page, exp: ExpressionWithColumnType): Pagi page.limit?.let { limit(it) } val resultRows = if (page.minId != null) { page.maxId?.let { andWhere { exp.less(it) } } - page.minId?.let { andWhere { exp.greater(it) } } + andWhere { exp.greater(page.minId!!) } reversed() } else { page.maxId?.let { andWhere { exp.less(it) } }