diff --git a/app/Services/RunIndicatorAnalysisService.php b/app/Services/RunIndicatorAnalysisService.php index af48f54e..4e365116 100644 --- a/app/Services/RunIndicatorAnalysisService.php +++ b/app/Services/RunIndicatorAnalysisService.php @@ -38,7 +38,7 @@ public function run(array $request, string $slug) 'table_name' => 'indicator_output_hectares', ], ]; - + if (! isset($slugMappings[$slug])) { return response()->json(['message' => 'Slug Not Found'], 400); }