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

@@ -56,10 +56,10 @@ function execute(req: Request) {
success: true,
results
};
} catch (e: any) {
} catch (e: unknown) {
return {
success: false,
error: e.message
error: (e instanceof Error) ? e.message : "Unknown Error"
};
}
}