From 925115e8c10d5dff44bba9c6ac7b565c23fba47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Thu, 21 Jun 2018 14:25:54 +0200 Subject: [PATCH] copy from: remove client dependecy --- app/controllers/copy_controller.js | 2 +- app/services/stream_copy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/copy_controller.js b/app/controllers/copy_controller.js index feb12b22..e66d1ac0 100644 --- a/app/controllers/copy_controller.js +++ b/app/controllers/copy_controller.js @@ -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); } diff --git a/app/services/stream_copy.js b/app/services/stream_copy.js index ffb8b37e..8d7e569a 100644 --- a/app/services/stream_copy.js +++ b/app/services/stream_copy.js @@ -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); }); }