pass limit in nextCursorEncoded() (#2434)

* pass limit in nextCursorEncoded()

* Also fix cursor in query for related items

---------

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
Scroogey-SN 2025-08-26 14:40:28 +00:00 committed by GitHub
parent 28bce7c9f7
commit 68bd96a65c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -583,7 +583,7 @@ export default {
break
}
return {
cursor: items.length === limit ? nextCursorEncoded(decodedCursor) : null,
cursor: items.length === limit ? nextCursorEncoded(decodedCursor, limit) : null,
items,
pins,
ad

View File

@ -168,7 +168,7 @@ export default {
})
return {
cursor: items.length === (limit || LIMIT) ? nextCursorEncoded(decodedCursor) : null,
cursor: items.length === limit ? nextCursorEncoded(decodedCursor, limit) : null,
items
}
},