Skip to content
Snippets Groups Projects
Commit f646d1b6 authored by lgtg20's avatar lgtg20
Browse files

Merge branch 'fix_aggregate' into 'development'

fix split problem

See merge request !411
parents 2df470e0 56fdb6d2
No related branches found
No related tags found
3 merge requests!417[ADD] Indicator "Taxa de Atendimento Educacional" updated on production!,!416[ADD] Route almost ready, some tests needed. Comments added and filters that...,!411fix split problem
...@@ -20,6 +20,7 @@ const convert = { ...@@ -20,6 +20,7 @@ const convert = {
} }
function aggregateData(req, res, next) { function aggregateData(req, res, next) {
if (req.query.dims) {
const newResult = [] const newResult = []
const aggregateFields = ['gender', 'age_range', 'ethnic_group', 'education_level_mod_agg', 'integral_time_agg', 'period_agg', 'modality_integral_time', 'especial_education'] const aggregateFields = ['gender', 'age_range', 'ethnic_group', 'education_level_mod_agg', 'integral_time_agg', 'period_agg', 'modality_integral_time', 'especial_education']
let id; let id;
...@@ -56,7 +57,7 @@ function aggregateData(req, res, next) { ...@@ -56,7 +57,7 @@ function aggregateData(req, res, next) {
}) })
req.result = newResult; req.result = newResult;
} }
console.log(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