云上实验室

dev_forge
cxt 5 years ago
parent f507a0ad70
commit 9162e0786d

@ -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

Loading…
Cancel
Save