Skip to content

Commit

Permalink
Merge pull request #867 from datacite/issue-834
Browse files Browse the repository at this point in the history
Improve logic for has_next_page for all ElasticSearch based Graphql endpoints
  • Loading branch information
jrhoads authored Oct 11, 2022
2 parents 09a5ab4 + 1a3de82 commit 41fab76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def page_info

# @return [Boolean] True if there are more items after this page
def has_next_page
nodes.length < total_count # && !(nodes.length < first.to_i)
nodes.length < total_count && (nodes.length == @first_value)
end

# @return [Boolean] True if there were items before these items
Expand Down

0 comments on commit 41fab76

Please sign in to comment.