1 parent
dacdf9c27d
commit
a116890e20
34 files changed
+186
-83
No files matched your search
@@ -63,9 +63,9 @@ pub async fn list_messages(
|
||||
Path(folder): Path<String>,
|
||||
Query(query): Query<ListMessagesQuery>,
|
||||
) -> Result<Response, AppError> {
|
||||
if !(1..=200).contains(&query.per_page) {
|
||||
if !(1..=300).contains(&query.per_page) {
|
||||
return Err(AppError::BadRequest(
|
||||
"per_page must be between 1 and 200".to_string(),
|
||||
"per_page must be between 1 and 300".to_string(),
|
||||
));
|
||||
}
|
||||
if !matches!(
|
||||
|
||||
Reference in new issue
Block a user