Fix other get missing throw

This commit is contained in:
Ajay
2024-01-18 11:57:50 -05:00
parent c9f7275942
commit 8e13ec60d6

View File

@@ -46,7 +46,11 @@ async function getTraced<T>(fetchFromDB: () => Promise<T>, 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();