chore(routes): fix no-explicit-any lint/ts error for catch blocks

This commit is contained in:
Panagiotis Papadopoulos
2025-03-08 16:01:53 +01:00
parent 272d7cd652
commit e3d0c53d03
5 changed files with 11 additions and 8 deletions

View File

@@ -477,7 +477,7 @@ function route(method: HttpMethod, path: string, middleware: express.Handler[],
if (result?.then) {
// promise
result.then((promiseResult: unknown) => handleResponse(resultHandler, req, res, promiseResult, start)).catch((e: any) => handleException(e, method, path, res));
result.then((promiseResult: unknown) => handleResponse(resultHandler, req, res, promiseResult, start)).catch((e: unknown) => handleException(e, method, path, res));
} else {
handleResponse(resultHandler, req, res, result, start);
}