From 71b2c572c31e8d88d2b7967d66e07efa7a066dc2 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 18 Jan 2026 20:16:38 +0100 Subject: [PATCH] plugin bugfix --- src/api/process.rs | 2 +- src/client/meta_core.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/process.rs b/src/api/process.rs index c4b5a62..7d85fd6 100644 --- a/src/api/process.rs +++ b/src/api/process.rs @@ -20,7 +20,7 @@ pub struct ProcessRequest { pub callback_url: String, pub meta_core_url: String, #[serde(default)] - pub existing_meta: HashMap, + pub existing_meta: HashMap, } #[derive(Serialize)] diff --git a/src/client/meta_core.rs b/src/client/meta_core.rs index b99bc03..7339e55 100644 --- a/src/client/meta_core.rs +++ b/src/client/meta_core.rs @@ -28,7 +28,7 @@ impl MetaCoreClient { /// Set a single property for a hash ID pub async fn set_property(&self, hash_id: &str, key: &str, value: &str) -> Result<()> { - let url = format!("{}/api/meta/{}/{}", self.base_url, hash_id, key); + let url = format!("{}/meta/{}/{}", self.base_url, hash_id, key); for attempt in 1..=MAX_RETRIES { match self @@ -84,7 +84,7 @@ impl MetaCoreClient { metadata: &HashMap, ) -> Result<()> { // Try batch endpoint first - let url = format!("{}/api/meta/{}", self.base_url, hash_id); + let url = format!("{}/meta/{}", self.base_url, hash_id); match self.client.patch(&url).json(metadata).send().await { Ok(resp) if resp.status().is_success() => {