From 1b540199f0a089421321d3c15a545d5fcc6a9f35 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 29 Mar 2021 19:51:38 +0600 Subject: [PATCH] small update --- .../kotlin/dev/inmo/micro_utils/pagination/utils/DoForAll.kt | 2 +- .../kotlin/dev/inmo/micro_utils/pagination/utils/GetAll.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/DoForAll.kt b/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/DoForAll.kt index 7a893bb2a24..761e3b63629 100644 --- a/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/DoForAll.kt +++ b/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/DoForAll.kt @@ -29,7 +29,7 @@ suspend fun doAllWithCurrentPaging( ) { doForAll( initialPagination, - { it.thisPageIfNotEmpty() }, + { it.currentPageIfNotEmpty() }, block ) } diff --git a/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/GetAll.kt b/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/GetAll.kt index bb670684725..5ad674cb746 100644 --- a/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/GetAll.kt +++ b/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/utils/GetAll.kt @@ -30,6 +30,6 @@ suspend fun getAllWithCurrentPaging( block: suspend (Pagination) -> PaginationResult ): List = getAll( initialPagination, - { it.thisPageIfNotEmpty() }, + { it.currentPageIfNotEmpty() }, block )