From c7d9ff978248605696e17f29516a2cabf2bd8eb1 Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:28:43 +0400 Subject: [PATCH] Update src/lib/metrics/index.ts Co-authored-by: Dmytro Tolok --- src/lib/metrics/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); }