Skip to content

Commit

Permalink
Simplify project.notes query
Browse files Browse the repository at this point in the history
  • Loading branch information
aapomm committed Jun 26, 2024
1 parent c0a0bde commit f7ec2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/liquid_cached_assigns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def project_records(record_type)
project.nodes.user_nodes
when 'notes'
# FIXME - ISSUE/NOTE INHERITANCE
project.notes.includes(:node).where.not(node: { type_id: Node::Types::ISSUELIB })
project.notes.where.not(node_id: project.issue_library.id)
else
project.send(record_type.to_sym)
end
Expand Down

0 comments on commit f7ec2af

Please sign in to comment.