From a56c2f1d2d2daa17bbd7080afda4ab30194ba86b Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Sat, 26 Jun 2021 08:45:03 +0800 Subject: [PATCH] fix(api): total item count incorrect for /me/authentication-activity --- .../komga/infrastructure/jooq/AuthenticationActivityDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/AuthenticationActivityDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/AuthenticationActivityDao.kt index c2fc674ad..25a26d3ee 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/AuthenticationActivityDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/AuthenticationActivityDao.kt @@ -44,7 +44,7 @@ class AuthenticationActivityDao( } private fun findAll(conditions: Condition, pageable: Pageable): PageImpl { - val count = dsl.fetchCount(aa) + val count = dsl.fetchCount(aa, conditions) val orderBy = pageable.sort.toOrderBy(sorts)