Fix linting errors

This commit is contained in:
Dries Augustyns
2025-12-04 12:46:39 +01:00
parent 73a1cdfefa
commit 04634a447b
34 changed files with 517 additions and 534 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ import {
SMTP_ENABLED,
STRIPE_ENABLED,
TRACKING_TOGGLE_ENABLED,
WIKI_URI
WIKI_URI,
} from './app/constants.js';
import {Actions} from './controllers/Actions.js';
import {Activity} from './controllers/Activity.js';
@@ -159,7 +159,7 @@ server.app.use((error: Error, req: Request, res: Response, _next: NextFunction)
field: err.path.join('.'),
message: err.message,
code: err.code,
received: err.code !== 'invalid_type' ? undefined : (err as any).received,
received: err.code !== 'invalid_type' ? undefined : 'received' in err ? err.received : undefined,
}));
const statusCode = 422;