1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

Insert table ID back into query for follow-up pagination query

This commit is contained in:
Andrew Kingston 2022-08-05 16:06:16 +01:00
parent 29c0e07b7e
commit 1f3b1b675f

View file

@ -423,6 +423,7 @@ exports.paginatedSearch = async (query, params) => {
// Try fetching 1 row in the next page to see if another page of results
// exists or not
const nextResults = await search
.setTable(params.tableId)
.setBookmark(searchResults.bookmark)
.setLimit(1)
.run()