From 8e13ec60d6d64a3bafdb30f39ad166357794ed7c Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 18 Jan 2024 11:57:50 -0500 Subject: [PATCH] Fix other get missing throw --- src/utils/queryCacher.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();