From, to, limit request query for exercise tracker not passing test

Tell us what’s happening:
I have implemented the from, to, limit parameters in the GET log method, but it is not passing the test. When I check the the test request query {“from”:“1989-12-31”,“to”:“1990-01-03”}, and the user exercise log [{“description”:“test”,“duration”:60,“date”:“Mon Jan 01 1990”},{“description”:“test”,“duration”:60,“date”:“Tue Jan 02 1990”}], it should return both records. Therefore I think that the test result is no different from a request without any query parameters. Please help.

Your project link(s)

solution: https://replit.com/@xstdio/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/91.0.4472.77 Safari/537.36

Challenge: Exercise Tracker

Link to the challenge:

Welcome there,

What about the request with limit=1?

With a limit=1, your app returns 2 logs:

Hope this helps

Sorry to have missed that out. Now it has passed the test.

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