Skip to content
Snippets Groups Projects
Commit 43d1f406 authored by Gabriel Ruschel's avatar Gabriel Ruschel
Browse files

Fix result field

parent f090feec
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!63Idhm routes hotfix
Pipeline #
......@@ -115,7 +115,7 @@ idhmeApp.get('/', rqf.parse(), (req, res, next) => {
.field('adh_idh_uf.estado_id', 'state_id');
} else if ("city" in req.filter) {
req.sql.from('adh_idh')
.field('adh_idh.idhm_e', 'IDHME')
.field('adh_idh.idhm_e', 'total')
.field('adh_idh.ano_censo', 'year')
.field('adh_idh.municipio_id', 'city_id');
} else {
......
......@@ -109,12 +109,12 @@ idhmlApp.get('/', rqf.parse(), (req, res, next) => {
}
if ("state" in req.filter) {
req.sql.from('adh_idh_uf')
.field('adh_idh_uf.idhm_l', 'IDHML')
.field('adh_idh_uf.idhm_l', 'total')
.field('adh_idh_uf.ano_censo', 'year')
.field('adh_idh_uf.estado_id', 'state_id');
} else if ("city" in req.filter) {
req.sql.from('adh_idh')
.field('adh_idh.idhm_l', 'IDHML')
.field('adh_idh.idhm_l', 'total')
.field('adh_idh.ano_censo', 'year')
.field('adh_idh.municipio_id', 'city_id');
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment