Exercise Tracker Test case #5 fail

Tell us what’s happening:
I can’t know how to pass the test case #5 in the Exercise Tracker API project

I can retrieve a full exercise log of any user by getting /api/exercise/log with a parameter of userId(_id). App will return the user object with added array log and count (total exercise count).

although I make this endpoint ‘/api/exercise/log’ to produce the response json is same as template endpoint

Your code so far
Here is my code
and Glitch :

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0.

Challenge: undefined

Link to the challenge:

1 Like