copy from: remove client dependecy

This commit is contained in:
Simon Martín 2018-06-21 14:25:54 +02:00
parent 327aaf3450
commit 925115e8c1
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ function handleCopyFrom (logger) {
const metrics = new StreamCopyMetrics(logger, 'copyfrom', sql, user, isGzip);
streamCopy.from(
function (err, pgstream, copyFromStream, client, done) {
function (err, pgstream, copyFromStream, done) {
if (err) {
return next(err);
}

View File

@ -65,7 +65,7 @@ module.exports = class StreamCopy {
client.connection.sendCopyFail('CARTO SQL API: Connection closed by client');
});
cb(null, pgstream, copyFromStream, client, done);
cb(null, pgstream, copyFromStream, done);
});
}