Skip to content

Commit

Permalink
remove sync
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 eb202a9 commit f596712
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Service/GithubApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ public function getConnectedComponents(ObjectEntity $organization, array $openca

// Get the github repository from the given url if the object is null.
if ($repositorySync->getObject() === null) {
$this->entityManager->remove($repositorySync);
$this->entityManager->flush();
$repository = $this->getGithubRepository($repositoryUrl);
}

Expand Down Expand Up @@ -409,6 +411,8 @@ public function getConnectedComponents(ObjectEntity $organization, array $openca

// Get the github repository from the given url if the object is null.
if ($repositorySync->getObject() === null) {
$this->entityManager->remove($repositorySync);
$this->entityManager->flush();
$repository = $this->getGithubRepository($repositoryUrl);
}

Expand Down

0 comments on commit f596712

Please sign in to comment.