diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 03a9cbb8f..6d4e89586 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -87,7 +87,8 @@ def total_upcoming_events_count end def upcoming_events_for_user - chapter_workshops = Workshop.eager_load(:chapter, :sponsors, :organisers, :permissions) + chapter_workshops = Workshop.upcoming + .eager_load(:chapter, :sponsors, :organisers, :permissions) .where(chapter: current_user.chapters) .to_a