mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 03:06:00 +00:00
fixed bulk import
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user