From 96a81833ae481019732dbce0b4e10f5f0ddcac99 Mon Sep 17 00:00:00 2001
From: fgs21 <fgs21@inf.ufpr.br>
Date: Wed, 7 Aug 2024 10:35:23 -0300
Subject: [PATCH] [FIX] Copying the original object to save its dimensions

---
 src/libs/routes_v1/rateSchoolNew.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libs/routes_v1/rateSchoolNew.js b/src/libs/routes_v1/rateSchoolNew.js
index 4b76e5ee..bf8719e5 100644
--- a/src/libs/routes_v1/rateSchoolNew.js
+++ b/src/libs/routes_v1/rateSchoolNew.js
@@ -234,11 +234,11 @@ function matchQueries(attendsSchoolObj, populationObj) {
     let match = [];
 
     for (let i = 0; i < attendsSchoolObj.length; i++) {
-        let newObj = {};
+        let newObj = attendsSchoolObj;
 
         newObj.total = (attendsSchoolObj[i].total / populationObj[i].total) * 100;
-        newObj.faixa_etaria = attendsSchoolObj[i].faixa_etaria;
-        newObj.year = attendsSchoolObj[i].year;
+        //newObj.faixa_etaria = attendsSchoolObj[i].faixa_etaria;
+        //newObj.year = attendsSchoolObj[i].year;
 
         match.push(newObj);
     }
-- 
GitLab