remove step: 2 function refactor

This commit is contained in:
Simon Martín 2018-07-30 15:55:24 +02:00
parent bafeceeb6e
commit 2196a89ec3

View File

@ -28,11 +28,10 @@ FilterStatsBackends.prototype.getFilterStats = function (username, unfiltered_qu
getEstimatedRows(self.pgQueryRunner, username, unfiltered_query, function (err, rows) {
if (err){
callback(err);
return;
return callback(err);
}
stats.unfiltered_rows = rows;
this(null, rows);
})
function getFilteredRows() {
if ( filters && !_.isEmpty(filters)) {