Tell us what’s happening:
My project on glitch found here. And the glitch codepage is here
I thought I had finshed the project but the fourth test doesn’t pass. The test states:
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.
It seems to be functioning correctly. Using the form located at ‘/’, an exercise is successfully added to the user in Mongo. Here is an example return from the post to ‘/api/exercise/add’ posted from the form at ‘/’
{“_id”:“5f1f76ef6949d714ecbb98b3”,“username”:“John”,“date”:“7/27/2020”,“duration”:50,“description”:“Litnin fast scales on me gitar”}
And here is a sample from the same call at the model project:
{“_id”:“5f1b3688e5835d007e76e5a3”,“username”:“fred the second”,“date”:“Tue Jul 28 2020”,“duration”:49,“description”:“Rock crunching”}
What am I missing?
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
.
Challenge: Exercise Tracker
Link to the challenge: