Skip to content
Snippets Groups Projects
Commit 2c70306d authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Fix - Education Level in class.js

parent 841ebac6
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!46Fix - Education Level in class.js
Pipeline #
...@@ -69,12 +69,12 @@ classApp.get('/integral_time', (req, res, next) => { ...@@ -69,12 +69,12 @@ classApp.get('/integral_time', (req, res, next) => {
}, response('integral_time')); }, response('integral_time'));
// Returns all educational levels avaible // Returns all educational levels avaible
classApp.get('/education_level', (req, res, next) => { classApp.get('/education_level_mod', (req, res, next) => {
req.sql.from('etapas_mod_ensino_segmento') req.sql.from('etapas_mod_ensino_segmento')
.field('id') .field('id')
.field('nome', 'name'); .field('nome', 'name');
next(); next();
}, query, response('education_level')); }, query, response('education_level_mod'));
rqfCount.addField({ rqfCount.addField({
name: 'filter', name: 'filter',
...@@ -172,10 +172,10 @@ rqfCount.addField({ ...@@ -172,10 +172,10 @@ rqfCount.addField({
field: 'localizacao_id' field: 'localizacao_id'
} }
}).addValue({ }).addValue({
name:'education_level', name:'education_level_mod',
table: 'turma', table: 'turma',
tableField: 'etapas_mod_ensino_segmento_id', tableField: 'etapas_mod_ensino_segmento_id',
resultField: 'education_level_id', resultField: 'education_level_mod_id',
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
......
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