Logs probelm in Exercise Tracker - backend challenge

Tell us what’s happening:
Hi. Every tests made seem to work as expected, still can’t pass get LOGS requirements.

Your project link(s)

solution: https://replit.com/@djstiff50/boilerplate-project-exercisetracker

Your browser information:

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

Challenge: Exercise Tracker

Link to the challenge:

Welcome there,

Every logs request I see returns logs: []:

Also, you do not seem to be following this user story:

You can POST to /api/users/:_id/exercises with form data description , duration , and optionally date . If no date is supplied, the current date will be used.

Hope this helps

Thank you for your answers. Testing code with FCC solution checker creates many users in database, but few with exercises in it. Here is an _id with exercises in it : 61f934b69389d39f1b8d434f. The URL https://boilerplate-project-exercisetracker.djstiff50.repl.co/api/users/61f934b69389d39f1b8d434f/logs shows 4 objects in logs, included both “ex2” and “ex3” created with no date supplied (and still successfully used the current date).

newExercise.date !== ""

What about when newExercise.date === undefined?

Works !! Thanks so much

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