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

[hotfix] solving city dimension problem in enrollment aggregate

parent e29121a6
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ function aggregateData(req, res, next) { ...@@ -68,7 +68,7 @@ function aggregateData(req, res, next) {
'receitas', 'receitas',
'despesas' 'despesas'
]; ];
const baseFields = ["school"] const baseFields = ["school", "city"]
let id; let id;
const fields = req.query.dims.split(','); const fields = req.query.dims.split(',');
let currentAggregateField; let currentAggregateField;
......
...@@ -400,7 +400,9 @@ rqf.addField({ ...@@ -400,7 +400,9 @@ rqf.addField({
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
field: 'id' field: 'municipio_id',
table: 'escola'
}, },
join: { join: {
primary: 'id', primary: 'id',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment