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

Change enrollment/location response

parent 0f89c1b1
No related branches found
No related tags found
1 merge request!116Release v1.0.0
...@@ -31,7 +31,8 @@ enrollmentApp.get('/location', (req, res, next) => { ...@@ -31,7 +31,8 @@ enrollmentApp.get('/location', (req, res, next) => {
req.sql = squel.select() req.sql = squel.select()
.field('id') .field('id')
.field('descricao', 'name') .field('descricao', 'name')
.from('localizacao'); .from('localizacao')
.where('localizacao.id <= 2');
next(); next();
}, query, response('location')); }, query, response('location'));
......
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