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:
parent
28bce7c9f7
commit
68bd96a65c
@ -583,7 +583,7 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
cursor: items.length === limit ? nextCursorEncoded(decodedCursor) : null,
|
cursor: items.length === limit ? nextCursorEncoded(decodedCursor, limit) : null,
|
||||||
items,
|
items,
|
||||||
pins,
|
pins,
|
||||||
ad
|
ad
|
||||||
|
@ -168,7 +168,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
cursor: items.length === (limit || LIMIT) ? nextCursorEncoded(decodedCursor) : null,
|
cursor: items.length === limit ? nextCursorEncoded(decodedCursor, limit) : null,
|
||||||
items
|
items
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user