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

@@ -33,8 +33,11 @@ async function exec(req: Request) {
executionResult: result,
maxEntityChangeId: syncService.getMaxEntityChangeId()
};
} catch (e: any) {
return { success: false, error: e.message };
} catch (e: unknown) {
return {
success: false,
error: (e instanceof Error) ? e.message : "Unknown Error"
};
}
}