Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:

Test does not pass on this one:

The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added.

I can’t figure out why, as my response is equal to the requested response object, maybe I should have done the project in moongose, but is that the reason it fails the test?

Your project link(s)

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

Your browser information:

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

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:


  const { username } = users.find((u) => u._id = _id);

is assignment, not comparison, of the IDs.

While you really should be using a database for persistent storage for practice with future projects, this one will pass without a database.

1 Like

Thank you very much, I did not see it was missing some equal sign.

I realized that i should be doing it with mongoose midway, I will start using it from now on. Thank you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.