diff --git a/spacetimedb/src/lib.rs b/spacetimedb/src/lib.rs index 748970e..a60fc94 100644 --- a/spacetimedb/src/lib.rs +++ b/spacetimedb/src/lib.rs @@ -209,8 +209,9 @@ pub fn edit_message( pub fn set_ai_processing( ctx: &ReducerContext, id: String, - _workspace_id: String, + workspace_id: String, ) -> Result<(), String> { + let _ = &workspace_id; if let Some(mut msg) = ctx.db.chat_message().id().find(&id) { // Merger ai_processing: true inn i metadata let mut meta: serde_json::Value = if msg.metadata.is_empty() { @@ -233,8 +234,9 @@ pub fn set_ai_processing( pub fn clear_ai_processing( ctx: &ReducerContext, id: String, - _workspace_id: String, + workspace_id: String, ) -> Result<(), String> { + let _ = &workspace_id; if let Some(mut msg) = ctx.db.chat_message().id().find(&id) { if !msg.metadata.is_empty() { if let Ok(mut meta) = serde_json::from_str::(&msg.metadata) {