From c226133c92fe3ec532275794cf5711fef9b573c6 Mon Sep 17 00:00:00 2001 From: godp21 <godp21@inf.ufpr.br> Date: Tue, 22 Feb 2022 09:28:54 -0300 Subject: [PATCH] changed results to numbers --- src/libs/routes/courseStudents.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/routes/courseStudents.js b/src/libs/routes/courseStudents.js index decd65f9..b50f704a 100644 --- a/src/libs/routes/courseStudents.js +++ b/src/libs/routes/courseStudents.js @@ -200,6 +200,9 @@ courseStudentsApp.get('/', rqf.parse(), (req, res, next) => { next(); }, query, (req, res, next) => { for (var res of req.result){ + res.inscritos_total = Number(res.inscritos_total); + res.vagas_totais = Number(res.vagas_totais); + res.ingresso_curso = Number(res.ingresso_curso); res.total = null; } -- GitLab