[SOLVED] Server returning incorrect data from database

I have some queries in my front end code that fetches all the results from my table called Events. Currently there are only 3 records within that table, but sometimes when I call it it returns 5 results and sometimes it returns none. It was working previously and I do not believe I have changed anything to make it behave this way.

This is now solved, I dont understand why but when it was returning 5 results, they were from a database in a different server that I was using previously. Simply stopping the app running and doing npm start again fixed the issue.

1 Like