@exulu/backend 1.42.1 → 1.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.42.
|
|
1
|
+
## [1.42.2](https://github.com/Qventu/exulu-backend/compare/v1.42.1...v1.42.2) (2025-12-18)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* hasNextPage logic ([fa41a3a](https://github.com/Qventu/exulu-backend/commit/fa41a3aac0017517c7e7326b7d5fa84fdf55a25a))
|
package/dist/index.cjs
CHANGED
|
@@ -3036,7 +3036,7 @@ var paginationRequest = async ({
|
|
|
3036
3036
|
const pageCount = Math.ceil(itemCount / limit);
|
|
3037
3037
|
const currentPage = page;
|
|
3038
3038
|
const hasPreviousPage = currentPage > 1;
|
|
3039
|
-
const hasNextPage = currentPage
|
|
3039
|
+
const hasNextPage = currentPage <= pageCount - 1;
|
|
3040
3040
|
let dataQuery = db3(tableName);
|
|
3041
3041
|
dataQuery = applyFilters(dataQuery, filters, table);
|
|
3042
3042
|
dataQuery = applyAccessControl(table, dataQuery, user);
|
package/dist/index.js
CHANGED
|
@@ -2984,7 +2984,7 @@ var paginationRequest = async ({
|
|
|
2984
2984
|
const pageCount = Math.ceil(itemCount / limit);
|
|
2985
2985
|
const currentPage = page;
|
|
2986
2986
|
const hasPreviousPage = currentPage > 1;
|
|
2987
|
-
const hasNextPage = currentPage
|
|
2987
|
+
const hasNextPage = currentPage <= pageCount - 1;
|
|
2988
2988
|
let dataQuery = db3(tableName);
|
|
2989
2989
|
dataQuery = applyFilters(dataQuery, filters, table);
|
|
2990
2990
|
dataQuery = applyAccessControl(table, dataQuery, user);
|