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 )