fix delete broken documents

This commit is contained in:
team 1
2026-02-18 10:45:26 +01:00
parent e79ef839d8
commit f5eaaa1bb8

View File

@@ -144,18 +144,6 @@ final readonly class IngestFlow
$this->em->remove($document); $this->em->remove($document);
$this->em->flush(); $this->em->flush();
// Prüfen, ob noch INDEXED-Versionen existieren
$indexedCount = $this->em
->getRepository(DocumentVersion::class)
->count([
'ingestStatus' => DocumentVersion::INGEST_INDEXED,
]);
if ($indexedCount === 0) {
// Kein Reindex notwendig
return;
}
// 4⃣ Reindex nur wenn sinnvoll // 4⃣ Reindex nur wenn sinnvoll
$this->rebuildIndex(false); $this->rebuildIndex(false);
} }