From aff9dd30e12355bfec875e33746072bf45732397 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Fri, 1 May 2026 03:41:14 +0200 Subject: [PATCH] asdsd --- modules/mining-checker/src/Api/Router.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/mining-checker/src/Api/Router.php b/modules/mining-checker/src/Api/Router.php index 1156212..bb93643 100644 --- a/modules/mining-checker/src/Api/Router.php +++ b/modules/mining-checker/src/Api/Router.php @@ -290,7 +290,7 @@ final class Router private function bootstrap(string $projectKey): array { $settings = $this->settings($projectKey); - $measurements = $this->measurements($projectKey); + $measurements = $this->measurements($projectKey, $settings); $targets = $this->targets($projectKey); $dashboards = $this->dashboards($projectKey); $fxSnapshots = $this->measurementFxSnapshots($measurements); @@ -798,9 +798,9 @@ final class Router return $this->settings($projectKey); } - private function measurements(string $projectKey): array + private function measurements(string $projectKey, ?array $settingsOverride = null): array { - $settings = $this->settings($projectKey); + $settings = $settingsOverride ?? $this->settings($projectKey); $rows = $this->repository()->listMeasurements($projectKey, 500); $rows = $this->ensureMeasurementFxReferences($projectKey, $rows); return $this->analytics()->enrichMeasurements($rows, $settings);