Skip to content
Snippets Groups Projects
Commit 98c195a9 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Format enrollmentProjection numbers to numbers

Related: simcaq/SCRUM#423
parent b2c060b3
No related branches found
No related tags found
No related merge requests found
Pipeline #18461 failed
......@@ -124,6 +124,16 @@ enrollmentProjectionApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.order('projecao_matricula.etapa_ensino_escola_ano_id');
next();
}, query, id2str.transform(), response('enrollment_projection'));
}, query, id2str.transform(), (req, res, next) => {
req.result.forEach((r) => {
r.urban_day_total = parseInt(r.urban_day_total, 10);
r.urban_night_total = parseInt(r.urban_night_total, 10);
r.rural_day_total = parseInt(r.rural_day_total, 10);
r.rural_night_total = parseInt(r.rural_night_total, 10);
});
next();
}, response('enrollment_projection'));
module.exports = enrollmentProjectionApp;
\ No newline at end of file
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