Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
My solution so far passes all the tests except the last one.

You can add from, to and limit parameters to a GET /api/users/:_id/logs request to retrieve part of the log of any user. from and to are dates in yyyy-mm-dd format. limit is an integer of how many logs to send back.

Running through manually , it works just fine.
Can you help me out?

Your project link(s)


githubLink: GitHub - codeHokage1/fcc-exercise-tracker

Your browser information:

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

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

I just tried it and put a FROM date in and it did not filter out the exercises that occurred before that date. Maybe something wrong in your filtering code?

I had the same problem. In my case, it turned out that my POST was wrong - I wasn’t checking properly to see if the exercise was already there.


Thank you noting that.
I had to re-write the logic for that and it works perfectly now

Thank you

I see.
Thank you for helping me nonetheless!

Glad it helped! I just passed this cert myself recently so the stuff that gave me grief is still close to hand. Ha!

1 Like

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