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

[FIX] Fixing /course_aggregate/university query

parent be1511b4
No related branches found
No related tags found
3 merge requests!434Homologa,!425Adding course_aggregate route,!424Course aggregate route
......@@ -193,7 +193,7 @@ CourseAggregateApp.get('/cine_detailed', (req, res, next) => {
CourseAggregateApp.get('/university', (req, res, next) => {
req.sql.from('curso_superior_agregado')
.field('DISTINCT curso_superior_agregado.cod_ies', 'cod')
.field('ies_ens_superior.cod_ies', 'nome')
.field('ies_ens_superior.nome_ies', 'nome')
.join('ies_ens_superior', null, 'curso_superior_agregado.cod_ies = ies_ens_superior.cod_ies and curso_superior_agregado.ano_censo = ies_ens_superior.ano_censo')
next();
}, query, response('university'));
......
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