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