fix(badges): reports background fetch was not writing to IDB

try_cache=false skips db_save_ae_obj_li__ae_obj, so the API fetch
completed but liveQuery never saw the data. Removing the override
lets it default to true so results are persisted to IDB as expected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-06-09 12:27:57 -04:00
parent 97c4c1cd6b
commit 6dc6be9926

View File

@@ -26,11 +26,11 @@ let event_id = $derived(page.params.event_id);
$effect(() => {
const eid = event_id;
if (!eid || !$ae_api?.api_key) return;
// try_cache defaults to true — results are written to IDB so liveQuery picks them up.
events_func.search__event_badge({
api_cfg: $ae_api,
event_id: eid,
limit: 5000,
try_cache: false
limit: 5000
});
});