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 for

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)

solution: https://replit.com/@bharathyramesh/boilerplate-project-exercisetracker

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36

Challenge: Exercise Tracker

Link to the challenge:

I’m not able to pass the last test case. @JeremyLT Please can you give me a idea regarding this?

The last test passed when I forked and tested it. The only one that failed is the the date string test (next to last) that fails my time of day due to the timezone offset problem.

Beware of this kind of code though:

    if (error) {
      res.json("Invalid UserID");
      return console.log(error);
    }

You really should use return res.json(...) or convert the error to JSON and return that. This code returns the result of console.log(), which is none. Returning anything after a response is a good way to unintentionally confuse whatever client is awaiting the response and can lead to very confusing results.