using this.copyFromStream
This commit is contained in:
parent
9970052e1b
commit
f4651cadae
@ -55,8 +55,8 @@ module.exports = class StreamCopy {
|
|||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
const copyFromStream = copyFrom(this.sql);
|
this.copyFromStream = copyFrom(this.sql);
|
||||||
const pgstream = client.query(copyFromStream);
|
const pgstream = client.query(this.copyFromStream);
|
||||||
|
|
||||||
pgstream
|
pgstream
|
||||||
.on('end', () => done())
|
.on('end', () => done())
|
||||||
|
Loading…
Reference in New Issue
Block a user