修改我的项目的后端参数

This commit is contained in:
sylor_huang@126.com
2020-04-21 10:11:54 +08:00
parent f927b31072
commit fdcdc3baf6
3 changed files with 44 additions and 23 deletions

View File

@@ -17,7 +17,7 @@ class Projects::ListMyQuery < ApplicationQuery
else
projects = Project.where(user_id: params[:user_id])
end
scope = projects.includes(:project_category, :project_language, :repository, owner: :user_extension).like(params[:search])
scope = projects.includes(:members,:issues,owner: :user_extension).like(params[:search])
.with_project_type(params[:project_type])
.with_project_category(params[:category_id])
.with_project_language(params[:language_id])