From d6cdc7b5a21d28c430b9c54fe1b2694cf48894b6 Mon Sep 17 00:00:00 2001 From: tracer Date: Sun, 6 Feb 2022 19:00:30 +0100 Subject: [PATCH] changed domain name => id Signed-off-by: tracer --- src/Controller/RequestController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/RequestController.php b/src/Controller/RequestController.php index 78ba460..34f22bf 100644 --- a/src/Controller/RequestController.php +++ b/src/Controller/RequestController.php @@ -295,7 +295,7 @@ class RequestController if (empty($this->uri[3])) { $this->handleAllDomainsGetRequest(); } else { - if ($result = $this->domainRepository->findByName(name: $this->uri[3])) { + if ($result = $this->domainRepository->findById(id: $this->uri[3])) { $domain = [ 'id' => $result->getId(), 'name' => $result->getName(),