From 270daae579c803016876e597f6a03dbfd4f23eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Tue, 12 Jun 2018 18:40:51 +0200 Subject: [PATCH] removing forgotten callback --- app/controllers/copy_controller.js | 14 -------------- 1 file changed, 14 deletions(-) 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 - }); } ); };