fix: complete processing.rs path cleanup (A-4.2 P3)

Issues: 4 hardcoded output_dir paths

Solution: Use config::OUTPUT_DIR throughout

Verification: cargo check --lib passes, 0 hardcoded paths

Progress: admin_config.rs ✅, files.rs ✅, watcher.rs ✅, processing.rs ✅
This commit is contained in:
Accusys
2026-10-04 16:32:09 +08:00
parent 1576b27528
commit 3285cf7696
+2 -4
View File
@@ -262,10 +262,8 @@ async fn trigger_processing(
return Err(StatusCode::CONFLICT);
}
let output_dir = std::env::var("MOMENTRY_OUTPUT_DIR")
.unwrap_or_else(|_| "/Users/accusys/momentry/output".to_string());
let output_path = crate::core::config::OUTPUT_DIR.join(format!("{}.monitor.json", file_uuid));
let output_dir = crate::core::config::OUTPUT_DIR.to_string();
let output_path = std::path::Path::new(&output_dir).join(format!("{}.monitor.json", file_uuid));
let monitor_jobs_table = schema::table_name("monitor_jobs");
let redis = RedisClient::new().map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;