Skip to content

Commit

Permalink
Fix other get missing throw
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Jan 18, 2024
1 parent c9f7275 commit 8e13ec6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/queryCacher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8e13ec6

Please sign in to comment.