fix(hayabusa): restore scheduled EVTX upload pipeline
This commit is contained in:
@@ -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))?;
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user