Skip to content
Snippets Groups Projects
Commit a340cfea authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

:bug: Bugfix in /city when joining with states table

parent 1dc236c1
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -60,7 +60,9 @@ rqf.addField({
// Return all cities
cityApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
req.sql.from('municipio');
req.sql.from('municipio')
.field('municipio.nome')
.field('municipio.pk_cod_ibge', 'pk_municipio_id');
next();
}, query, response('city'));
......
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