Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:

Describe your issue in detail here.
Good day. Could anyone help me with the following problem. I cant pass the final test on freeCodeCamp Exercise Tracker. I have tested the test id’s for freeCodeCamp testing in mongodb atlas. It does not return a document with log. I only get null when searching by date as stored in freeCodeCamp test log array. My id created with logs works with from to and limit parameters. Thank you for your time and help.

Your project link(s)

Exercise tracker link

Your browser information:

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

Challenge Information:

Back End Development and APIs Projects - Exercise Tracker

I would just like to add another link with my code:
My exercise tracker project code ;
I managed to get the test id to return proper JSON object. But it still fails last test. When pasting replit link.

I finally resolved the problem. By a if else statement. First checking if id exists and from, to and limit is undefined. Then in else statement return the user id and log with limit.