diff --git a/src/lib/metrics/index.ts b/src/lib/metrics/index.ts index d3d6f14..f1b2195 100644 --- a/src/lib/metrics/index.ts +++ b/src/lib/metrics/index.ts @@ -15,7 +15,7 @@ export default function initMetrics(app: Express) { /^\/api\/moderation$/, /^\/(webhook|sentry)$/ ], - errorHandler: (e: any) => capture(e) + errorHandler: capture }); }