diff --git a/CHANGELOG.md b/CHANGELOG.md index 299e31ebae3cebfffaab0e22309193f2291740f8..b63aaac7a49c7d7ea492e16a31dfc9e13720d736 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.12.6 - 2020-02-02 +## Changed +- Fix teacher education mod dimension + ## 1.12.5 - 2020-01-27 ## Changed - Fix duplicated cities in courseCount diff --git a/src/libs/routes/teacher.js b/src/libs/routes/teacher.js index ff712b525f6e3bf066404167ee938fa1310f5998..bef4eb337e55ad3664cfc7eac5d7fd95bec53dd4 100644 --- a/src/libs/routes/teacher.js +++ b/src/libs/routes/teacher.js @@ -410,12 +410,8 @@ teacherApp.get('/', rqf.parse(), (req, res, next) => { .where('(docente.tipo_docente = 1 OR docente.tipo_docente = 5) AND (turma.tipo_turma_id <= 3)'); if("education_level_mod" in req.dims) { - delete req.dims.education_level_mod; req.hadEducationLevelMod = true; - req.sql.field('docente.etapas_mod_ensino_segmento_id', 'education_level_mod_id') - .where('docente.etapas_mod_ensino_segmento_id < 11') - .group('docente.etapas_mod_ensino_segmento_id') - .order('docente.etapas_mod_ensino_segmento_id'); + req.sql.where('docente.etapas_mod_ensino_segmento_id < 11'); } next();