Skip to content
Snippets Groups Projects

Increase values of antispam

Open poka requested to merge feat/1/increase-antispam-limits into master
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -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()?,
Loading