I have completed the project but one user story keeps giving incorrect:
“The response returned from POST /api/users/:_id/exercises
will be the user object with the exercise fields added.”
The sample API site returns:
{"_id":“629a03a88413530938cc4526”,“username”:“1”,“date”:“Fri Jun 03 2022”,“duration”:1,“description”:“desc”}
My API returns:
{"_id":“629a09f4e5706c139927f068”,“username”:“1”,“date”:“Fri Jun 03 2022”,“duration”:“1”,“description”:“desc”}
I don’t understand what’s wrong here and I don’t know what “the user object” is supposed to be. I’d appreciate any help.
My Replit code