Skip to content
Snippets Groups Projects
Commit 14a2435b authored by lgtg20's avatar lgtg20
Browse files

Merge branch 'development' into 'homologa'

Development

See merge request !397
parents 598f22b5 902bf36b
No related branches found
No related tags found
3 merge requests!407Master,!405Homologa,!397Development
...@@ -38,8 +38,6 @@ module.exports = function attendedModality(id) { ...@@ -38,8 +38,6 @@ module.exports = function attendedModality(id) {
return 'Educação profissional - técnica integrada'; return 'Educação profissional - técnica integrada';
case 9: case 9:
return 'Educação profissional - técnica concomitante e subsequente'; return 'Educação profissional - técnica concomitante e subsequente';
case 10:
return 'Ensino Médio Regular e Profissional articulado';
case 11: case 11:
return 'EJA - Ensino Médio'; return 'EJA - Ensino Médio';
case 12: case 12:
......
...@@ -74,6 +74,7 @@ module.exports = function capitalCode(id) { ...@@ -74,6 +74,7 @@ module.exports = function capitalCode(id) {
return 'Goiânia'; return 'Goiânia';
case 53: case 53:
return 'Brasília'; return 'Brasília';
case null:
case 99: case 99:
return 'Não é capital'; return 'Não é capital';
default: default:
......
...@@ -62,6 +62,7 @@ module.exports = function metroCode(id) { ...@@ -62,6 +62,7 @@ module.exports = function metroCode(id) {
return 'Região Metropolitana de Vale do Rio Cuiabá'; return 'Região Metropolitana de Vale do Rio Cuiabá';
case 52: case 52:
return 'Região Metropolitana de Goiânia'; return 'Região Metropolitana de Goiânia';
case null:
case 99: case 99:
return 'Não é região metropolitana ou região administrativa integrada'; return 'Não é região metropolitana ou região administrativa integrada';
default: default:
......
...@@ -143,6 +143,8 @@ PnadNovoApp.get('/attended_modality', (req, res, next) => { ...@@ -143,6 +143,8 @@ PnadNovoApp.get('/attended_modality', (req, res, next) => {
id: i, name: id2str.attendedModality(i) id: i, name: id2str.attendedModality(i)
}); });
} }
// Remove the option with id equals 10 => This option exists in the database, a better solution to this would be remove the option from the database
req.result.splice(req.result.findIndex((item) => item.id === 10), 1);
req.result.push({id: 99, name: id2str.attendedModality(99)}); req.result.push({id: 99, name: id2str.attendedModality(99)});
next(); next();
}, response('attended_modality')); }, response('attended_modality'));
......
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