Can someone help with test#4: Exercise Tracker

here is my replit

so the /api/users/:id/exercises, it is not picking up the id from request.body[":_id"]
when I do it from the .params the tests save in the DB but it doesn’t pass the test.

2 Likes

I figure it out.
my object didn’t match this syntax:
{"_id":“5fbbb6442e4b4c2d4f3f7878”,“username”:“Juan”,“date”:“Wed Mar 22 1995”,“duration”:50,“description”:“soccer”}

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