fix: always check for updates/clear cache 10 min cooldown (#7077)

This commit is contained in:
Calum H.
2026-08-10 14:00:42 +00:00
committed by GitHub
parent 92971a3e0d
commit 9fd45ef2ce
10 changed files with 71 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ pub use self::content::{
get_content_items, get_dependencies_as_content_items,
get_install_candidates, get_installed_project_ids,
get_linked_modpack_content, get_linked_modpack_info, get_projects,
list_content_sets, sync_content_files,
list_content_sets, refresh_content_updates, sync_content_files,
};
pub use self::export_mrpack::{
PackExportCandidate, create_mrpack_json, export_mrpack,
@@ -74,6 +74,12 @@ pub async fn get_content_items(
crate::state::list_content(instance_id, None, cache_behaviour, &state).await
}
#[tracing::instrument]
pub async fn refresh_content_updates(instance_id: &str) -> crate::Result<()> {
let state = State::get().await?;
crate::state::refresh_content_updates(instance_id, &state).await
}
#[tracing::instrument]
pub async fn get_linked_modpack_content(
instance_id: &str,