1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Adding bookmark to each subsequent (thanks tests ).

This commit is contained in:
mike12345567 2024-07-31 16:50:20 +01:00
parent a2f11f17fd
commit de22a078c0
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ export async function search(
// need wrapper object for bookmarks etc when paginating
const response: SearchResponse<Row> = { rows: processed, hasNextPage }
if (hasNextPage && bookmark != null) {
response.bookmark = processed.length
response.bookmark = bookmark + processed.length
}
if (totalRows != null) {
response.totalRows = totalRows

View file

@ -382,7 +382,7 @@ export async function search(
// check for pagination
if (paginate && nextRow) {
response.hasNextPage = true
response.bookmark = processed.length
response.bookmark = bookmark + processed.length
}
if (paginate && !nextRow) {
response.hasNextPage = false