So I have 1 request that is app.get('/assignment/loans', (req, res) => { const id = req.query.bookID;
and another that is this app.get('/assignment/loans', (req, res) => { const id = req.query.studentID;
for some reason the studentID one does not work and it always goes to the bookID to search. I use this http://localhost:3000/assignment/loans?bookID=1 and it works as intended but if I use http://localhost:3000/assignment/loans?studentID=9653 I get which is an error that should only appear for the bookID. How can I differentiate the two? Thank you in advance.