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()); }