mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
fix the settings tests
This commit is contained in:
parent
d1db495119
commit
b72495eb58
2 changed files with 9 additions and 5 deletions
|
@ -138,6 +138,7 @@ macro_rules! make_setting_route {
|
|||
|
||||
debug!(returns = ?settings, "Update settings");
|
||||
let mut json = serde_json::json!(&settings);
|
||||
dbg!(&json);
|
||||
let val = json[$camelcase_attr].take();
|
||||
|
||||
Ok(HttpResponse::Ok().json(val))
|
||||
|
@ -625,14 +626,14 @@ fn embedder_analytics(
|
|||
}
|
||||
|
||||
make_setting_route!(
|
||||
"/search_cutoff",
|
||||
patch,
|
||||
"/search-cutoff",
|
||||
put,
|
||||
u64,
|
||||
meilisearch_types::deserr::DeserrJsonError<
|
||||
meilisearch_types::error::deserr_codes::InvalidSettingsSearchCutoff,
|
||||
>,
|
||||
search_cutoff,
|
||||
"search_cutoff",
|
||||
"searchCutoff",
|
||||
analytics,
|
||||
|setting: &Option<u64>, req: &HttpRequest| {
|
||||
analytics.publish(
|
||||
|
@ -673,7 +674,8 @@ generate_configure!(
|
|||
typo_tolerance,
|
||||
pagination,
|
||||
faceting,
|
||||
embedders
|
||||
embedders,
|
||||
search_cutoff
|
||||
);
|
||||
|
||||
pub async fn update_all(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue