Commit 25c6c381 authored by Vytor Calixto's avatar Vytor Calixto 👾

Fix multi year query

parent b5d902fe
Pipeline #15016 failed with stage
in 6 minutes and 2 seconds
...@@ -235,7 +235,7 @@ classroomCountApp.post('/', rqf.parse(), (req, res, next) => { ...@@ -235,7 +235,7 @@ classroomCountApp.post('/', rqf.parse(), (req, res, next) => {
}); });
}); });
if(classroom.findIndex((el) => {return el.city_id === obj.city_id}) === -1) { if(classroom.findIndex((el) => {return (el.city_id === obj.city_id && el.year === obj.year)}) === -1) {
classroom.push(obj); classroom.push(obj);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment