Skip to content

Commit f2dc65a

Browse files
committed
chore: dont eager load comments
1 parent e4cd5af commit f2dc65a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/models/unit.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,6 @@ def tasks_for_moderation(user)
22042204
mentees = my_unit_role ? staff.where(mentor_id: my_unit_role.id) : staff.none
22052205

22062206
tasks = student_tasks
2207-
.includes(:comments)
22082207
.joins(:moderated_task)
22092208
.where(moderated_tasks: { state: %i[open waiting_for_new_feedback] })
22102209
.where(projects: { unit_id: id })

0 commit comments

Comments
 (0)