|
|
|
@ -44,7 +44,7 @@ class SearchService < ApplicationService
|
|
|
|
|
when 'subject' then
|
|
|
|
|
{ where: { id: Laboratory.current.subjects.pluck(:id) } }
|
|
|
|
|
when 'course' then
|
|
|
|
|
{ where: { id: Laboratory.current.all_courses } }
|
|
|
|
|
{ where: { id: Laboratory.current.all_courses.pluck(:id) } }
|
|
|
|
|
else
|
|
|
|
|
{}
|
|
|
|
|
end
|
|
|
|
|