mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
add an error code test on the setting
This commit is contained in:
parent
7bd881b9bc
commit
4369e9e97c
5 changed files with 36 additions and 4 deletions
|
@ -138,7 +138,6 @@ 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))
|
||||
|
@ -630,7 +629,7 @@ make_setting_route!(
|
|||
put,
|
||||
u64,
|
||||
meilisearch_types::deserr::DeserrJsonError<
|
||||
meilisearch_types::error::deserr_codes::InvalidSettingsSearchCutoff,
|
||||
meilisearch_types::error::deserr_codes::InvalidSettingsSearchCutoffMs,
|
||||
>,
|
||||
search_cutoff_ms,
|
||||
"searchCutoffMs",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue