Unfortunately, the code example given above does not reflect real information, trivially, the number of displayed orders for a certain period does not correspond to the number of orders in the database for the same period.
Below is a simpler and faster code that will make only 2 requests to the database, and most importantly will return true information
Thank you, we will take a look into this soon and update the examples. Your previous comment showed us that we had a problem in our testing, so we will update this course with tests and corrections!
Unfortunately, the code example given above does not reflect real information, trivially, the number of displayed orders for a certain period does not correspond to the number of orders in the database for the same period.
Below is a simpler and faster code that will make only 2 requests to the database, and most importantly will return true information
Thank you, we will take a look into this soon and update the examples. Your previous comment showed us that we had a problem in our testing, so we will update this course with tests and corrections!