Skip to content
Snippets Groups Projects
Commit 125b8a4d authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

Edit aggregateData.js

parent e9be68c7
Branches
Tags
3 merge requests!501[hotfix] capital filter working for superior education conclusion tax...,!499[hotfix] capital filter working for superior education conclusion tax...,!489dev -> hom
...@@ -78,7 +78,6 @@ function aggregateData(req, res, next) { ...@@ -78,7 +78,6 @@ function aggregateData(req, res, next) {
let currentAggregateField; let currentAggregateField;
let currentNonAggregateField; let currentNonAggregateField;
console.log("data pre aggregate" ,req.result)
// Verifica se o filtro passado está presente nos filtros agregados // Verifica se o filtro passado está presente nos filtros agregados
fields.forEach(field => {if (aggregateFields.includes(field)) currentAggregateField = field; else currentNonAggregateField = field}); fields.forEach(field => {if (aggregateFields.includes(field)) currentAggregateField = field; else currentNonAggregateField = field});
if (currentAggregateField) { if (currentAggregateField) {
...@@ -110,7 +109,6 @@ function aggregateData(req, res, next) { ...@@ -110,7 +109,6 @@ function aggregateData(req, res, next) {
req.result = newResult; req.result = newResult;
} }
} }
console.log("data pos aggregate" ,req.result)
next(); next();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment