diff --git a/app/controllers/copy_controller.js b/app/controllers/copy_controller.js index 0e2c91d7..6cc6f01d 100644 --- a/app/controllers/copy_controller.js +++ b/app/controllers/copy_controller.js @@ -199,20 +199,6 @@ function handleCopyFrom (logger) { } else { req.pipe(pgstream); } - - }, - function(err, rows) { - metrics.end(rows); - - const { time } = metrics; - if (!time || !rows) { - return next(new Error("No rows copied")); - } - - res.send({ - time, - total_rows: rows - }); } ); };