This is the situation:
- There are routes /a and /b which return X and Y respectively
- Both call the same function, but with one parameter different which determines if it's X or Y
- The function filters the data two times (in the database query and afterwards with Array.filter()) to ensure it adheres to the parameter
- I call /b, but it gives me X
- The logs on that service confirm I called /b