mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Rethrow the error
This commit is contained in:
parent
3469374d8e
commit
9f02215c04
1 changed files with 2 additions and 0 deletions
|
|
@ -145,6 +145,8 @@ async function storeEvent(event: DittoEvent, signal?: AbortSignal): Promise<unde
|
||||||
// We can't catch this in the transaction because the error aborts the transaction on the Postgres side.
|
// We can't catch this in the transaction because the error aborts the transaction on the Postgres side.
|
||||||
if (e instanceof Error && e.message.includes('event_stats' satisfies keyof DittoTables)) {
|
if (e instanceof Error && e.message.includes('event_stats' satisfies keyof DittoTables)) {
|
||||||
await store.event(event, { signal });
|
await store.event(event, { signal });
|
||||||
|
} else {
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue