From 728b0eb28c3b9fed8f3bee2703f53d30c291333e Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 16 Jul 2025 11:14:19 +0200 Subject: [PATCH] Add type to method --- src/lib/features/metrics/instance/metrics.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/features/metrics/instance/metrics.ts b/src/lib/features/metrics/instance/metrics.ts index 66a057f41b..7b9872ca54 100644 --- a/src/lib/features/metrics/instance/metrics.ts +++ b/src/lib/features/metrics/instance/metrics.ts @@ -28,6 +28,7 @@ import type { CustomMetricsSchema } from '../../../openapi/spec/custom-metrics-s import type { StoredCustomMetric } from '../custom/custom-metrics-store.js'; import type { CustomMetricsService } from '../custom/custom-metrics-service.js'; import type { MetricsTranslator } from '../impact/metrics-translator.js'; +import type { ClientMetricsSchema } from '../../../server-impl.js'; export default class ClientMetricsController extends Controller { logger: Logger; @@ -147,7 +148,10 @@ export default class ClientMetricsController extends Controller { // Note: Custom metrics GET endpoints are now handled by the admin API } - async registerMetrics(req: IAuthRequest, res: Response): Promise { + async registerMetrics( + req: IAuthRequest, + res: Response, + ): Promise { if (this.config.flagResolver.isEnabled('disableMetrics')) { res.status(204).end(); } else {