removing forgotten callback

This commit is contained in:
Simon Martín 2018-06-12 18:40:51 +02:00
parent 409273bafe
commit 270daae579

View File

@ -199,20 +199,6 @@ function handleCopyFrom (logger) {
} else { } else {
req.pipe(pgstream); 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
});
} }
); );
}; };