Fix user deletion (#907)

* Fix user deletion

* run prep+fmt

* Update validators
This commit is contained in:
Geometrically
2024-04-22 17:46:56 -07:00
committed by GitHub
parent 83ccf4928f
commit 49cf0c8a9a
6 changed files with 98 additions and 7 deletions

View File

@@ -191,7 +191,12 @@ pub async fn search_for_project(
let offset: usize = info.offset.as_deref().unwrap_or("0").parse()?;
let index = info.index.as_deref().unwrap_or("relevance");
let limit = info.limit.as_deref().unwrap_or("10").parse::<usize>()?.min(100);
let limit = info
.limit
.as_deref()
.unwrap_or("10")
.parse::<usize>()?
.min(100);
let sort = get_sort_index(config, index)?;
let meilisearch_index = client.get_index(sort.0).await?;