mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-20 03:25:56 +00:00
Refresh release notes for the offered update instead of reusing incomplete history
This commit is contained in:
1 parent
7c0c4cda1f
commit
7e7216979a
10 files changed
+115
-44
No files matched your search
@@ -32,9 +32,9 @@ mod control_cmds;
|
||||
|
||||
/// Informational release notes only; never used to select or authorize an update.
|
||||
#[tauri::command]
|
||||
async fn release_history(component: String) -> std::result::Result<Value, String> {
|
||||
async fn release_history(component: String, target: Option<String>) -> std::result::Result<Value, String> {
|
||||
tauri::async_runtime::spawn_blocking(move || {
|
||||
coa_core::release_history::load(&component, &data_dir().join("release-history"))
|
||||
coa_core::release_history::load_for_target(&component, &data_dir().join("release-history"), target.as_deref())
|
||||
})
|
||||
.await
|
||||
.map_err(|e| e.to_string())?
|
||||
|
||||
Reference in new issue
Block a user