Skip to content

Commit

Permalink
Fix n+1
Browse files Browse the repository at this point in the history
  • Loading branch information
CuddlyBunion341 committed Jan 15, 2025
1 parent b584c3f commit a821bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/timer_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class TimerSessionsController < TrackyController
def index
@timer_sessions_in_range = TimerSession.includes(:issues, :time_entries, :timer_session_time_entries)
@timer_sessions_in_range = TimerSession.includes(:issues, :project, :time_entries, :timer_session_time_entries)
.finished
.created_by(User.current)
@non_matching_timer_session_ids = TimeDiscrepancyLoader.uneven_timer_session_ids(@timer_sessions_in_range)
Expand Down

0 comments on commit a821bc7

Please sign in to comment.