From d8d4f320067cb5c4e63c94010321f5ecab4b32f9 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 17 Apr 2024 00:59:36 +0100 Subject: [PATCH] ah shit, forgot to load the metrics after messing around --- src/main/java/xyz/mcutils/backend/service/MetricService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/mcutils/backend/service/MetricService.java b/src/main/java/xyz/mcutils/backend/service/MetricService.java index 6a45e48..1823520 100644 --- a/src/main/java/xyz/mcutils/backend/service/MetricService.java +++ b/src/main/java/xyz/mcutils/backend/service/MetricService.java @@ -86,8 +86,8 @@ public class MetricService { */ public void loadMetrics() { log.info("Loading metrics"); - for (Metric metricToLoad : metricsRepository.findAll()) { - + for (Metric metric : metricsRepository.findAll()) { + metrics.put(metric.getClass(), metric); } log.info("Loaded {} metrics", metrics.size()); }