Skip to content
Snippets Groups Projects
Commit 03d7921d authored by lgtg20's avatar lgtg20
Browse files

Fix

parent 3b80a824
No related branches found
No related tags found
3 merge requests!405Homologa,!397Development,!396Fix
......@@ -38,15 +38,15 @@ module.exports = function attendedModality(id) {
return 'Educação profissional - técnica integrada';
case 9:
return 'Educação profissional - técnica concomitante e subsequente';
case 10:
return 'EJA - Ensino Médio';
case 11:
return 'Superior';
return 'EJA - Ensino Médio';
case 12:
return 'Especialização';
return 'Superior';
case 13:
return 'Mestrado';
return 'Especialização';
case 14:
return 'Mestrado';
case 15:
return 'Doutorado';
case 99:
return 'Não frequenta instituição de ensino';
......
......@@ -138,11 +138,13 @@ PnadNovoApp.get('/metro_code', (req, res, next) => {
PnadNovoApp.get('/attended_modality', (req, res, next) => {
req.result = []
for (let i = 1; i < 15; i++) {
for (let i = 1; i < 16; i++) {
req.result.push({
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)});
next();
}, 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