From 020926cb53cc0e4c365c238b6069b3ff5486a126 Mon Sep 17 00:00:00 2001 From: es23 <es23@inf.ufpr.br> Date: Tue, 22 Apr 2025 09:49:50 -0300 Subject: [PATCH] minor changes --- src/libs/routes_v1/superiorEnrollmentAggregate.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libs/routes_v1/superiorEnrollmentAggregate.js b/src/libs/routes_v1/superiorEnrollmentAggregate.js index 7c1350c7..718f0745 100644 --- a/src/libs/routes_v1/superiorEnrollmentAggregate.js +++ b/src/libs/routes_v1/superiorEnrollmentAggregate.js @@ -87,16 +87,16 @@ superiorEnrollmentAggregateApp.get('/city', (req, res, next) => { next(); }, query, response('city')); -superiorEnrollmentAggregateApp.get('/tp_categ_adm', (req, res, next) => { +superiorEnrollmentAggregateApp.get('/tp_categ_adm_agg', (req, res, next) => { req.result = [] - for (let i = 1; i <= 5; i++) { + for (let i = 1; i <= 5; ++i) { req.result.push({ id: i, name: id2str.admDependency(i) }); } next(); -}, response('tp_categ_adm')); +}, response('tp_categ_adm_agg')); superiorEnrollmentAggregateApp.get('/cine_global', (req, res, next) => { req.result = []; @@ -220,7 +220,7 @@ rqf.addField({ }).addValue({ name: 'max_year', table: 'curso_superior_agregado', - tableField: '', + tableField: 'ano_censo', resultField: 'year', where: { relation: '<=', @@ -228,7 +228,7 @@ rqf.addField({ field: 'ano_censo' } }).addValue({ - name: 'tp_categ_adm', + name: 'tp_categ_adm_agg', table: 'curso_superior_agregado', tableField: 'tp_categ_adm', resultField: 'tp_categ_adm_id', -- GitLab