Skip to content

Commit

Permalink
fix(api-headless-cms): always output cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric authored and Pavel910 committed Sep 18, 2024
1 parent be6dc85 commit 85beabc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ export const createEntriesStorageOperations = (
* Although we do not need a cursor here, we will use it as such to keep it standardized.
* Number is simply encoded.
*/
const cursor = totalCount > start + limit ? encodeCursor(`${start + limit}`) : null;
const cursor = encodeCursor(`${start + limit}`);
return {
hasMoreItems,
totalCount,
Expand Down

0 comments on commit 85beabc

Please sign in to comment.