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
|
// need wrapper object for bookmarks etc when paginating
|
||||||
const response: SearchResponse<Row> = { rows: processed, hasNextPage }
|
const response: SearchResponse<Row> = { rows: processed, hasNextPage }
|
||||||
if (hasNextPage && bookmark != null) {
|
if (hasNextPage && bookmark != null) {
|
||||||
response.bookmark = processed.length
|
response.bookmark = bookmark + processed.length
|
||||||
}
|
}
|
||||||
if (totalRows != null) {
|
if (totalRows != null) {
|
||||||
response.totalRows = totalRows
|
response.totalRows = totalRows
|
||||||
|
|
|
@ -382,7 +382,7 @@ export async function search(
|
||||||
// check for pagination
|
// check for pagination
|
||||||
if (paginate && nextRow) {
|
if (paginate && nextRow) {
|
||||||
response.hasNextPage = true
|
response.hasNextPage = true
|
||||||
response.bookmark = processed.length
|
response.bookmark = bookmark + processed.length
|
||||||
}
|
}
|
||||||
if (paginate && !nextRow) {
|
if (paginate && !nextRow) {
|
||||||
response.hasNextPage = false
|
response.hasNextPage = false
|
||||||
|
|
Loading…
Reference in New Issue