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

[FIX] Fixing 'where' of the base query

parent 6ccbd774
No related branches found
No related tags found
3 merge requests!434Homologa,!425Adding course_aggregate route,!424Course aggregate route
......@@ -402,6 +402,7 @@ CourseAggregateApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
req.sql.from('curso_superior_agregado')
.field('count(distinct(cod_curso))', 'total')
.field('curso_superior_agregado.ano_censo', 'year')
.where('curso_superior_agregado.tp_nivel_acad = 1 AND qtd_cursos = 1')
.group('curso_superior_agregado.ano_censo')
.order('curso_superior_agregado.ano_censo')
console.log(req.sql.toString())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment