plugin bugfix

This commit is contained in:
Pierre
2026-01-18 20:16:38 +01:00
parent 7d3c6ef635
commit 71b2c572c3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ pub struct ProcessRequest {
pub callback_url: String,
pub meta_core_url: String,
#[serde(default)]
pub existing_meta: HashMap<String, String>,
pub existing_meta: HashMap<String, serde_json::Value>,
}
#[derive(Serialize)]
+2 -2
View File
@@ -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<String, String>,
) -> 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() => {