From f038b9cda69c62dbf061e13da4dd7a9ced0ee2bc Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Dec 2024 17:41:05 -0800 Subject: [PATCH] submissions-api: wrong url --- validation/api/src/external.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/api/src/external.rs b/validation/api/src/external.rs index b359503..ee8e85b 100644 --- a/validation/api/src/external.rs +++ b/validation/api/src/external.rs @@ -117,7 +117,7 @@ impl Context{ .json().await.map_err(Error::Reqwest) } pub async fn update_script_policy(&self,config:UpdateScriptPolicyRequest)->Result<(),Error>{ - let url_raw=format!("{}/script-policy/id/{}",self.0.base_url,config.ScriptPolicyID.0); + let url_raw=format!("{}/script-policy/{}",self.0.base_url,config.ScriptPolicyID.0); let url=reqwest::Url::parse(url_raw.as_str()).map_err(Error::Parse)?; let body=serde_json::to_string(&config).map_err(Error::JSON)?;