From b826768049f55c35cfbd03cb7857ac407d92d0ed Mon Sep 17 00:00:00 2001 From: rzmk <30333942+rzmk@users.noreply.github.com> Date: Fri, 2 May 2025 16:50:50 -0400 Subject: [PATCH] chore: use options as param instead of custom_fields for config_option_update --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b8e702e..9ccc15d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2359,14 +2359,14 @@ impl CKAN { #[builder] pub async fn config_option_update( &self, - custom_fields: Option, + options: Option, ) -> Result> { let endpoint = self.url.clone() + "/api/3/action/config_option_update"; let mut map: HashMap<&str, serde_json::Value> = HashMap::new(); let mut custom_map: HashMap = HashMap::new(); - if let Some(custom) = custom_fields { - if custom.is_object() { - let custom_temp_map = custom.as_object().unwrap(); + if let Some(options_obj) = options { + if options_obj.is_object() { + let custom_temp_map = options_obj.as_object().unwrap(); custom_map.extend( custom_temp_map .iter()