removing forgotten callback
This commit is contained in:
parent
409273bafe
commit
270daae579
@ -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
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user