Merge branch 'catch-update-stats' into 'main'

fix: catch updateStats() function

Closes #221

See merge request soapbox-pub/ditto!513
This commit is contained in:
Alex Gleason 2024-09-23 22:53:41 +00:00
commit 3dd53f71e9

View file

@ -136,7 +136,7 @@ async function storeEvent(event: DittoEvent, signal?: AbortSignal): Promise<unde
const store = await Storages.db();
await store.transaction(async (store, kysely) => {
await updateStats({ event, store, kysely });
await updateStats({ event, store, kysely }).catch((e) => console.error(e));
await store.event(event, { signal });
});
}