Touch-ups and adding drone pipeline

This commit is contained in:
mifi committed 2023-05-23 15:40:31 -04:00
1 parent 19b6de68cf
commit f0c2c8d855
7 files changed
+342 -7

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ import { Context, Next } from 'koa';
export const errorHandler = async (ctx: Context, next: Next) => {
try {
await next();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
ctx.status = error.statusCode || error.status || StatusCodes.INTERNAL_SERVER_ERROR;
error.status = ctx.status;