Skip to content

Commit 1aafcd5

Browse files
authored
OTWO-7354 Show people of analyzed projects (#1807)
1 parent 65d620c commit 1aafcd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/unclaimed_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def find_emails(email_ids)
3838
end
3939

4040
def unclaimed_people(query, find_by, per_page = 10)
41-
name_ids = Person.unclaimed_people(q: query, find_by: find_by).limit(per_page).pluck(:name_id)
41+
name_ids = Person.joins(project: :best_analysis).unclaimed_people(q: query,
42+
find_by: find_by).limit(per_page).pluck(:name_id)
4243
unclaimed_people_with_limit(name_ids)
4344
end
4445

0 commit comments

Comments
 (0)