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
NVM I SOLVED IT SORRY