fix: catch updateStats() function

This commit is contained in:
P. Reis 2024-09-23 17:47:55 -03:00
parent e0b966bb6d
commit 42371bcc31

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 });
});
}