Skip to content

Commit

Permalink
[B] Correct filtering eager loads for annotations
Browse files Browse the repository at this point in the history
* `eager_load` is trying to join records when we just want lazy loads
  • Loading branch information
scryptmouse authored and zdavis committed Sep 5, 2024
1 parent 3955011 commit 2c0404f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/models/annotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def trigger_event_creation

class << self
def apply_filtering_loads
eager_load(:annotation_node, :creator, :membership_comments, :project, text_section: { text: %i[titles] })
includes(:annotation_node, :creator, :membership_comments, :project, text_section: { text: %i[titles] })
end

# @param [ReadingGroupMembership, String] rgm
Expand Down

0 comments on commit 2c0404f

Please sign in to comment.