I didn’t look at the code thoroughly but you do not seem to be handling the case where no date is supplied. And when looking in the browser network tab all the log responses are just an empty array so you seem to never reach the else part of your if/else in the log route.