Making sure to measure whether we have paged forward in the query based on raw results.

This commit is contained in:
mike12345567 2024-06-18 12:48:36 +01:00
parent 278242fb55
commit bda83205ee
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ export async function search(
// check for pagination final row
let nextRow: Row | undefined
if (paginate && params.limit && processed.length > params.limit) {
if (paginate && params.limit && rows.length > params.limit) {
// remove the extra row that confirmed if there is another row to move to
nextRow = processed.pop()
}