Skip to main content

refresh_base_data

Function refresh_base_data 

Source
pub async fn refresh_base_data(
    api: &ApiClient,
    cache: &CacheManager,
    org_guid: &str,
    user_id: i64,
    on_progress: impl Fn(CacheProgress),
) -> RefreshResult
Expand description

Fetch all 10 base data sources in parallel, save to cache, deduplicate adults.

Progress is reported via on_progress so each frontend can display it. Returns all fetched data so callers can update in-memory state without re-reading cache.