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()