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