Fix unhandled promise rejections

This commit is contained in:
Zaid Abdulla committed 2020-09-17 17:00:41 -07:00
1 parent 328bfa03e0
commit 9286bd6aa0
2 files changed
+10 -3

No files matched your search

+3 -1
View File
@@ -60,7 +60,9 @@ const getAuthorizer = memoize(
);
koa.on("error", async (err) => {
throw err;
setTimeout(() => {
throw err;
});
});
koa.use(async (ctx, next) => {