Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
Describe your issue in detail here.
The problem is in date format it follows the same format but is still not passing the test.
This test asks for response following given structure.

  username: "fcc_test",
  count: 1,
  _id: "5fb5853f734231456ccb3b05",
  log: [{
    description: "test",
    duration: 60,
    date: "Mon Jan 01 1990",

My solution structure:

"date":"Mon Jan 01 1990"},
"date":"Mon Jan 01 1990"},

The test that fails is :
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.

Your project link(s)

solution: boilerplate-project-exercisetracker - Node.js Repl - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

It’s actually failing all but two of the GET log tests, and for reasons in your output. You need to log the route inputs and outputs from all your routes so that you can see that there are only a few (<= 3) exercises expected in the logs (not 97) and so that you can see that the list grows after every test (the ellipsis, presumably), regardless of ID provided, so your code is not finding just the exercise records for the provided ID. Log your exercise record list returned from find() to see more clearly what is happening, for example:

exercises: [{"_id":"634c5279c7d388cf44cf3342","description":"test","duration":60,"date":"1990-01-01T00:00:00.000Z","__v":0},{"_id":"634c527ac7d388cf44cf3347","description":"test","duration":60,"date":"1990-01-01T00:00:00.000Z","__v":0},{"_id":"634c527fc7d388cf44cf337d","description":"test","duration":60,"date":"1990-01-01T00:00:00.000Z","__v":0},{"_id":"634c527fc7d388cf44cf3380","description":"test","duration":60,"date":"1990-01-03T00:00:00.000Z","__v":0}]

Notice the absence of an id field you attempt to use in your code. You’ll need to start by solving the problem with your exercise schema.

The dateString test you mentioned has solutions all over the forums, but you’ll have to fix the other problems first.

Thank you for your reply.
After following your advice I found the error I made.
In my Exercise schema I made a field for username and when I was constructing model instance I was passing id as parameter instead of username.
Thank you so much.