AIRON Fitness is an AI-powered fitness companion supporting your personal health journey by delivering customized fitness and meal plans tailored to your goals and preferences.
When a user regenerates their schedules and goes to the schedule history page before the request completes, the new schedule is undefined and causes page to break. Bug has been fixed.
Changed the retrieval of the schedule history from mongodb to use aggregate to improve efficiency
Reduces the number of db queries required by one
Pagination and sorting are handled in the db, only the necessary number of rows are retrieved
Changes:
aggregate
to improve efficiency