Tests of the /api/users/:_id/logs request

Hello, I need you to solve this problem. The tests of the /api/users/:_id/logs request are not performed. The format and content of the JSON returned by the request is correct. Thank you very much

Your project link(s)

solution: https://replit.com/@ignacioedlp/boilerplate-project-exercisetracker
githubLink: GitHub - ignacioedlp/exercise-tracker-fcc

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 OPR/83.0.4254.70

Challenge: Exercise Tracker

Look in the network tab when submitting and check the exercises response when the payload doesn’t have a date.

Response: error new exercise

let creates a block-scoped variable, your newDate variable is not, and can not, be used outside the if statement block.

  let newDate = new Date(Date.now())
1 Like

Thanks bro!! You are amazing