FIX query projects code review
This commit is contained in:
parent
546e112f80
commit
620ba7285e
|
@ -17,7 +17,7 @@ class Projects::ListQuery < ApplicationQuery
|
||||||
else
|
else
|
||||||
projects = Project.visible
|
projects = Project.visible
|
||||||
end
|
end
|
||||||
scope = projects.like(params[:search])
|
scope = projects.includes(:repository, owner: :user_extension).like(params[:search])
|
||||||
.with_project_type(params[:project_type])
|
.with_project_type(params[:project_type])
|
||||||
.with_project_category(params[:category_id])
|
.with_project_category(params[:category_id])
|
||||||
.with_project_language(params[:language_id])
|
.with_project_language(params[:language_id])
|
||||||
|
|
Loading…
Reference in New Issue