diff --git a/src/NodaBatchInserter.php b/src/NodaBatchInserter.php index 42fd96a..599b02a 100644 --- a/src/NodaBatchInserter.php +++ b/src/NodaBatchInserter.php @@ -141,6 +141,11 @@ final class NodaBatchInserter { $noda_source = $nodaLink->source->toDbName(); $noda_id = $nodaLink->id; $noda_link_url = $nodaLink->getEntityLink(); + + if (!in_array($noda_source, MDNodaRepositoriesSet::REPOSITORIES_ACTOR, true)) { + continue; + } + $insertNodaLinkStmt->bind_param("issss", $persinst_id, $noda_source, $noda_id, $noda_link_url, $user_name); $insertNodaLinkStmt->execute(); @@ -179,6 +184,11 @@ final class NodaBatchInserter { $noda_source = $nodaLink->source->toDbName(); $noda_id = $nodaLink->id; $noda_link_url = $nodaLink->getEntityLink(); + + if (!in_array($noda_source, MDNodaRepositoriesSet::REPOSITORIES_PLACE, true)) { + continue; + } + $insertNodaLinkStmt->bind_param("issss", $ort_id, $noda_source, $noda_id, $noda_link_url, $user_name); $insertNodaLinkStmt->execute(); @@ -217,6 +227,11 @@ final class NodaBatchInserter { $noda_source = $nodaLink->source->toDbName(); $noda_id = $nodaLink->id; $noda_link_url = $nodaLink->getEntityLink(); + + if (!in_array($noda_source, MDNodaRepositoriesSet::REPOSITORIES_TAG, true)) { + continue; + } + $insertNodaLinkStmt->bind_param("issss", $tag_id, $noda_source, $noda_id, $noda_link_url, $user_name); $insertNodaLinkStmt->execute();