Skip to content

Commit

Permalink
fix owner url
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarai Misidjan authored and Sarai Misidjan committed Nov 16, 2023
1 parent 27c0683 commit 088623e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/GithubApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 088623e

Please sign in to comment.