Skip to content
Snippets Groups Projects
Commit b4c6885d authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

[TEST] Trying to iterate through different queries in JSON

parent 9dd752f8
No related branches found
No related tags found
3 merge requests!417[ADD] Indicator "Taxa de Atendimento Educacional" updated on production!,!416[ADD] Route almost ready, some tests needed. Comments added and filters that...,!414[ADD] Route almost ready, some tests needed. Comments added and filters that...
......@@ -312,6 +312,19 @@ rqf.addField({
}
});
function matchQueries(attendsSchoolObj, populationObj) {
let match = []
for (let i = 0; i < attendsSchoolObj.length; i++) {
let newObj = {}
console.log("====TESTE====")
console.log(attendsSchoolObj[i])
console.log(populationObj[i])
console.log("====TESTE====")
}
}
rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
req.querySet = []
......@@ -341,7 +354,10 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
next();
}, multiQuery, (req, res, next) => {
console.log(req.result)
//req.result = matchQueries(req.result[0], req.result[1])
matchQueries(req.result[0], req.result[1])
next();
}, id2str.transform(false), response('rateSchoolNew'));
......
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