jakji93 / airon-fitness

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.
https://airon-fitness.onrender.com/
MIT License
3 stars 2 forks source link

[BUG] General BE bug fixes #67

Closed jakji93 closed 11 months ago

jakji93 commented 11 months ago
  1. Use userData.api for ChatGPT on live server. env.api kept in code for development testing purposes
  2. Change meal schedule controller to have similar functionality as workout schedule to be consistent. Meal schedule will also keep the previously generated schedules within the database now
  3. When user update their profile or when first create a profile, can now correctly calls generateSchedules in scheduleGenerationController to create a new set of schedules. The condition to check for existing schedules is now removed since we want to create a new record
  4. bulk delete for deleting user will now call deleteMany on the schedules
  5. Remove the condition to check for existing workout schedule in the controller that was reintroduce in a previous pr (missed it during review)