Skip to content

Commit eeedd97

Browse files
committed
fixes
--- Signed-off-by: Guillaume Moutier <[email protected]> Co-authored-by: Claude
1 parent deb4e1e commit eeedd97

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

backend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"fastify": "^4.26.1",
5252
"fastify-plugin": "^4.5.1",
5353
"pg": "^8.11.3",
54-
"pino": "^8.19.0"
54+
"pino": "^8.19.0",
55+
"zod": "^3.23.8"
5556
},
5657
"devDependencies": {
5758
"@types/node": "^20.11.19",

backend/src/config/admin-analytics.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ export function loadAdminAnalyticsConfig(): AdminAnalyticsConfig {
112112
// Validate configuration
113113
try {
114114
return AdminAnalyticsConfigSchema.parse(config);
115-
} catch (error) {
115+
} catch (error: unknown) {
116116
if (error instanceof z.ZodError) {
117-
const issues = error.issues.map((i) => `${i.path.join('.')}: ${i.message}`).join('\n');
117+
const issues = error.issues
118+
.map((i: z.ZodIssue) => `${i.path.join('.')}: ${i.message}`)
119+
.join('\n');
118120
throw new Error(`Invalid admin analytics configuration:\n${issues}`);
119121
}
120122
throw error;

package-lock.json

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)