Refactor request listeners to use async functions

This commit is contained in:
Zaid Humaimidi committed 2023-08-09 19:51:40 -07:00
1 parent 58488ebc3d
commit 7b8a49a7ba
11 files changed
+148 -163

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ const getAuthorizer = memoize(
}
);
koa.on("error", async (err, ctx) => {
koa.on("error", (err, ctx) => {
setTimeout(() => {
// Ignored errors resulting from aborted requests
if (ctx?.req.aborted) return;