Harden server update history, recovery guards and repeated checks

This commit is contained in:
Дмитрий committed 2026-10-06 07:01:13 +05:00
1 parent 3940506987
commit 0d6d8a0db8
37 files changed
+1112 -99

No files matched your search

+1 -1
View File
@@ -697,7 +697,7 @@ async fn check_update(state: State<'_, AppState>, id: String, source: Option<Str
#[tauri::command]
fn pending_update(state: State<'_, AppState>, id: String) -> std::result::Result<Option<update::Txn>, UiError> {
let root = path_of(&state, &id)?;
Ok(update::unfinished(&meta_dir(&root)?))
Ok(update::pending_checked(&meta_dir(&root)?)?)
}
#[tauri::command]