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

Fix multi year query

parent b5d902fe
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -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);
} }
}); });
......
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