diff --git a/Controller/APIController.php b/Controller/APIController.php index a1627b6..92d3d32 100644 --- a/Controller/APIController.php +++ b/Controller/APIController.php @@ -45,7 +45,7 @@ public function import(Request $request): Response } /** - * @Route("/teams/was/imported", name="teams.was.imported") + * @Route("/check", name="teams.check") */ public function wasImported(Request $request): Response { diff --git a/Services/APIService.php b/Services/APIService.php index c6a0919..de2fb88 100644 --- a/Services/APIService.php +++ b/Services/APIService.php @@ -37,7 +37,7 @@ public function __construct( public function find(string $teamsId): bool { - $multimediaObject = $this->documentManager->getRepository(MultimediaObject::class)->findBy([ + $multimediaObject = $this->documentManager->getRepository(MultimediaObject::class)->findOneBy([ 'properties.teamsId' => $teamsId, ]);