diff --git a/src/utils/queryCacher.ts b/src/utils/queryCacher.ts index 4e7685cb..fe89c653 100644 --- a/src/utils/queryCacher.ts +++ b/src/utils/queryCacher.ts @@ -46,7 +46,11 @@ async function getTraced(fetchFromDB: () => Promise, key: string): Promise endTime: Date.now() }; } - } catch (e) { } //eslint-disable-line no-empty + } catch (e) { + if (e instanceof TooManyActiveConnectionsError) { + throw e; + } + } const dbStartTime = Date.now(); const data = await fetchFromDB();