mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Remove plural form
This commit is contained in:
@ -663,7 +663,7 @@ fn documents_by_query(
|
|||||||
let sorts: Vec<_> = match sort.iter().map(|s| milli::AscDesc::from_str(s)).collect() {
|
let sorts: Vec<_> = match sort.iter().map(|s| milli::AscDesc::from_str(s)).collect() {
|
||||||
Ok(sorts) => sorts,
|
Ok(sorts) => sorts,
|
||||||
Err(asc_desc_error) => {
|
Err(asc_desc_error) => {
|
||||||
return Err(milli::SortError::from(asc_desc_error).into_documents_error().into())
|
return Err(milli::SortError::from(asc_desc_error).into_document_error().into())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Some(sorts)
|
Some(sorts)
|
||||||
|
@ -173,7 +173,7 @@ impl SortError {
|
|||||||
Error::UserError(UserError::SortError { error: self, search: true })
|
Error::UserError(UserError::SortError { error: self, search: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn into_documents_error(self) -> Error {
|
pub fn into_document_error(self) -> Error {
|
||||||
Error::UserError(UserError::SortError { error: self, search: false })
|
Error::UserError(UserError::SortError { error: self, search: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user