Skip to content

Commit

Permalink
fix Healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
holema committed Dec 31, 2020
1 parent 0f0f00d commit 79bec2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/HealthCheckController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class HealthCheckController extends AbstractController
public function index(): Response
{
try {
$res = $this->getDoctrine()->getRepository(User::class)->findAll();
$vorfall = $res[0]->getFakten();
$res = $this->getDoctrine()->getRepository(User::class)->findOneBy(array());
$user = $res->getFirstname();
} catch (\Exception $exception) {
throw $this->createNotFoundException('Database not working');
}
Expand Down

0 comments on commit 79bec2d

Please sign in to comment.