1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

Merge pull request #7117 from Budibase/fix/lucene-pagination

Insert table ID back into query for follow-up pagination query
This commit is contained in:
Andrew Kingston 2022-08-05 17:22:06 +01:00 committed by GitHub
commit d4fe21afaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()