Skip to content

Commit

Permalink
fix: change route and fix find object
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Nov 8, 2024
1 parent 7679ff7 commit d566e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Services/APIService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);

Expand Down

0 comments on commit d566e7c

Please sign in to comment.