Skip to content
Snippets Groups Projects
Commit fd2ecdee authored by Éloïs's avatar Éloïs
Browse files

fix(gql): pagination: MAX_PAGE_SIZE must be inclusive

parent 2f73e4bc
Branches
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ impl Pagination {
self,
is_whitelisted: bool,
) -> anyhow::Result<duniter_gva_dbs_reader::PageInfo<T>> {
let page_size = if is_whitelisted || (self.page_size > 0 && self.page_size < MAX_PAGE_SIZE)
let page_size = if is_whitelisted || (self.page_size > 0 && self.page_size <= MAX_PAGE_SIZE)
{
NonZeroUsize::new(self.page_size as usize)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment