fix: set domain DEFAULT_LIMIT to 5 for pagination

This commit is contained in:
2026-05-04 20:16:18 +02:00
parent 0ff22cca5f
commit 22aafe99be

View File

@@ -16,7 +16,7 @@ pub struct PageParams {
impl PageParams { impl PageParams {
const MAX_LIMIT: u32 = 100; const MAX_LIMIT: u32 = 100;
const DEFAULT_LIMIT: u32 = 20; const DEFAULT_LIMIT: u32 = 5;
pub fn new(limit: Option<u32>, offset: Option<u32>) -> Result<Self, DomainError> { pub fn new(limit: Option<u32>, offset: Option<u32>) -> Result<Self, DomainError> {
let l = limit.unwrap_or(Self::DEFAULT_LIMIT); let l = limit.unwrap_or(Self::DEFAULT_LIMIT);