fix(hayabusa): restore scheduled EVTX upload pipeline

This commit is contained in:
igor04091968
2026-06-12 10:57:39 +03:00
parent 7919051688
commit 106d796d95
18 changed files with 164 additions and 19 deletions
@@ -120,8 +120,6 @@ fn process_one(zip_path: &Path) -> Result<ProcessResult> {
"process-inbox".to_string(),
"--mode".to_string(),
mode.clone(),
"--limit".to_string(),
"1".to_string(),
],
)?;
let latest = read_json_file(Path::new(LATEST_INTAKE))?;
+2 -1
View File
@@ -92,7 +92,8 @@ fn decode_optional_json(body: String) -> Result<Value> {
pub fn read_json_file(path: &Path) -> Result<Value> {
let text = fs::read_to_string(path).with_context(|| format!("read {}", path.display()))?;
serde_json::from_str(&text).with_context(|| format!("decode {}", path.display()))
serde_json::from_str(text.trim_start_matches('\u{feff}'))
.with_context(|| format!("decode {}", path.display()))
}
pub fn write_json_pretty(value: &Value) -> Result<String> {