fixed bulk import

This commit is contained in:
SPRINX0\prochazka
2025-03-05 12:55:37 +01:00
parent 75bf58359c
commit 3a04166747
2 changed files with 4 additions and 2 deletions

View File

@@ -11,7 +11,9 @@ class ReportingTransform extends stream.Transform {
this.reporter = reporter;
}
_transform(chunk, encoding, callback) {
this.reporter.add(1);
if (!chunk?.__isStreamHeader) {
this.reporter.add(1);
}
this.push(chunk);
callback();
}