Please, can someone indicate what am I missing to pass the “APIs and Microservices Projects - Exercise Tracker” test!???
When I run the code I get this:
All the tests get passed but this:
I can add an exercise to any user by posting form data userId(_id), description, duration, and optionally date to /api/exercise/add. If no date supplied it will use current date. App will return the user object with the exercise fields added.
Can’t think anymore and this is basically the last exercise for me to get the full stack dev certification and I want to do that before the new version is out…
The code is here:
I’m not using a DB for it.
Thanks everyone in advance!