remove step: first funcion

This commit is contained in:
Simon Martín
2018-07-30 15:54:26 +02:00
parent eeafad7cd9
commit bafeceeb6e
+2 -5
View File
@@ -26,17 +26,14 @@ FilterStatsBackends.prototype.getFilterStats = function (username, unfiltered_qu
var stats = {};
var self = this;
function getUnfilteredRows() {
getEstimatedRows(self.pgQueryRunner, username, unfiltered_query, this);
},
function receiveUnfilteredRows(err, rows) {
getEstimatedRows(self.pgQueryRunner, username, unfiltered_query, function (err, rows) {
if (err){
callback(err);
return;
}
stats.unfiltered_rows = rows;
this(null, rows);
},
})
function getFilteredRows() {
if ( filters && !_.isEmpty(filters)) {
var analysisFilter = new AnalysisFilter(filters);