mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
FIX query projects code review
This commit is contained in:
@@ -17,7 +17,7 @@ class Projects::ListQuery < ApplicationQuery
|
||||
else
|
||||
projects = Project.visible
|
||||
end
|
||||
scope = projects.like(params[:search])
|
||||
scope = projects.includes(:repository, owner: :user_extension).like(params[:search])
|
||||
.with_project_type(params[:project_type])
|
||||
.with_project_category(params[:category_id])
|
||||
.with_project_language(params[:language_id])
|
||||
|
||||
Reference in New Issue
Block a user