mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-12 18:14:21 +01:00
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:
@@ -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 });
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user