Cannot pass the last 2 tests in exercise tracker project

I can’t seem to pass the last two tests from the exercise tracker project. I have tried accessing the route multiple times in my repl with different queries and they seem to work fine (date in response is string and queries work fine).

I have looked at every single forum questions and tried everything but I seem to not pass the last two tests

The tests are:

The date property of any object in the log array that is returned from GET /api/users/:id/logs should be a string. Use the dateString format of the Date API.

Waiting: You can add from, to and limit parameters to a GET /api/users/:_id/logs request to retrieve part of the log of any user. from and to are dates in yyyy-mm-dd format. limit is an integer of how many logs to send back.

Here’s my replit code


How did you solve it?

I can’t figure out.

Please create a new topic when asking questions about your own project. You will need to tell us the exact problem(s) you are having and a link to your full project code.