From 088623efc82e4dabed783460b54941e9dfcb38cb Mon Sep 17 00:00:00 2001 From: Sarai Misidjan Date: Thu, 16 Nov 2023 11:28:16 +0100 Subject: [PATCH] fix owner url --- src/Service/GithubApiService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/GithubApiService.php b/src/Service/GithubApiService.php index a4e5bc72..4f0ab223 100644 --- a/src/Service/GithubApiService.php +++ b/src/Service/GithubApiService.php @@ -251,13 +251,13 @@ public function enrichWithOrganization(ObjectEntity $repository, array $reposito { $organizationSchema = $this->resourceService->getSchema('https://opencatalogi.nl/oc.organisation.schema.json', 'open-catalogi/open-catalogi-bundle'); - $organizationSync = $this->syncService->findSyncBySource($source, $organizationSchema, $repositoryArray['repository']['owner']['html_url']); + $organizationSync = $this->syncService->findSyncBySource($source, $organizationSchema, $repositoryArray['owner']['html_url']); if ($organizationSync->getObject() === null) { $organizationMapping = $this->resourceService->getMapping('https://api.github.com/oc.githubOrganisation.mapping.json', 'open-catalogi/open-catalogi-bundle'); $organizationSync->setMapping($organizationMapping); - $organizationSync = $this->syncService->synchronize($organizationSync, $repositoryArray['repository']['owner']); + $organizationSync = $this->syncService->synchronize($organizationSync, $repositoryArray['owner']); $this->entityManager->persist($organizationSync); }