Commit b7b57b83 authored by Camil Staps's avatar Camil Staps

Avoid unnecessary includes in StarredProjectsFinder

parent 2ca4d581
......@@ -2,7 +2,7 @@
class StarredProjectsFinder < ProjectsFinder
def initialize(user, params: {}, current_user: nil)
project_ids = user.starred_projects.includes(:creator).select(:id)
project_ids = user.starred_projects.select(:id)
super(params: params, current_user: current_user, project_ids_relation: project_ids)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment