Fix removal logic

Signed-off-by: Damon Kaswell <damon.kaswell1@hp.com>
This commit is contained in:
Damon Kaswell
2022-11-22 12:02:41 -08:00
committed by Fredrik Adelöw
parent de022e51c9
commit 7deebb9065
@@ -279,17 +279,7 @@ export class IncrementalIngestionEngine implements IterationEngine {
const removed: DeferredEntity[] = [];
let doComputeRemoved = false;
if (!done) {
doComputeRemoved = true;
} else {
if (entities && entities.length > 0) {
doComputeRemoved = true;
}
}
if (doComputeRemoved) {
if (done) {
removed.push(
...(await this.manager.computeRemoved(
this.options.provider.getProviderName(),