refactor: mark dead exports with TODO, deduplicate field sanitization, fix import placement
Local Build and Deploy / deploy (push) Successful in 1m36s
Local Build and Deploy / deploy (push) Successful in 1m36s
This commit is contained in:
1 parent
2beba07ba5
commit
d5e3bc7875
13 files changed
+49
-64
No files matched your search
@@ -30,7 +30,7 @@ export function apiValidationError(zodError: z.ZodError) {
|
||||
);
|
||||
}
|
||||
|
||||
/** Centralized error handler for API routes */
|
||||
// TODO: Check of dit weg kan — niet geïmporteerd in de codebase
|
||||
export function handleApiError(error: unknown): Response {
|
||||
if (error instanceof ApiError) {
|
||||
return apiError(error.message, error.status);
|
||||
|
||||
Reference in new issue
Block a user