fixed 项目查询增加id参数

This commit is contained in:
xxqfamous 2023-05-24 14:33:50 +08:00
parent c56d3dfd83
commit 206b71cf72
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class Projects::ListQuery < ApplicationQuery
def filter_projects(collection)
# collection = by_pinned(collection)
collection = by_search(collection) if params[:search].present?
collection = collection.where(id: params[:ids].to_s.split(",")) if params[:ids].present?
collection = by_project_type(collection)
collection = by_project_category(collection)
collection = by_project_language(collection)