Adding bookmark to each subsequent (thanks tests ).
This commit is contained in:
parent
a2f11f17fd
commit
de22a078c0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue