Skip to content
Snippets Groups Projects
Commit 7719d3db authored by poka's avatar poka
Browse files

feat: increase MAX_PAGE_SIZE to 10000

parent c8d178fd
No related branches found
No related tags found
1 merge request!6Increase values of antispam
Pipeline #33219 waiting for manual action
......@@ -17,7 +17,7 @@ use std::str::FromStr;
use crate::*;
const MAX_PAGE_SIZE: u32 = 1_000;
const MAX_PAGE_SIZE: u32 = 10_000;
#[derive(Clone, Copy, async_graphql::Enum, Eq, PartialEq)]
pub(crate) enum Order {
......@@ -62,7 +62,7 @@ impl Pagination {
{
NonZeroUsize::new(self.page_size as usize)
} else {
return Err(anyhow::Error::msg("pageSize must be between 1 and 1000."));
return Err(anyhow::Error::msg("pageSize must be between 1 and 10000."));
};
Ok(duniter_gva_dbs_reader::PageInfo::new(
self.cursor.map(|c| T::from_str(&c)).transpose()?,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment