From 42371bcc31fa6350f7d2e2d4c2dbfe0e7cbe8781 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 23 Sep 2024 17:47:55 -0300 Subject: [PATCH] fix: catch updateStats() function --- src/pipeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipeline.ts b/src/pipeline.ts index f8fb6eed..db43915a 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -136,7 +136,7 @@ async function storeEvent(event: DittoEvent, signal?: AbortSignal): Promise { - await updateStats({ event, store, kysely }); + await updateStats({ event, store, kysely }).catch((e) => console.error(e)); await store.event(event, { signal }); }); }