Skip to content

Commit

Permalink
VACMS-16132: Fix content release on D10. (#16133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndouglas authored Nov 15, 2023
1 parent 40a5a08 commit 5effa82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ public function handleAutocomplete(Request $request, string $frontend, int $coun
$frontend = Frontend::from($frontend);
}
catch (\InvalidArgumentException $e) {
return JsonResponse::create(['error' => 'Invalid frontend type provided.']);
return new JsonResponse(['error' => 'Invalid frontend type provided.']);
}
$input = $request->query->get('q') ?? 'main';
$query = mb_strtolower($input);
$results = $this->frontendVersionSearch->getMatchingReferences($frontend, $query, $count);
return JsonResponse::create($results);
return new JsonResponse($results);
}

}

0 comments on commit 5effa82

Please sign in to comment.