mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fixed 个人项目列表条件增加标签名查询,索引失效
This commit is contained in:
@@ -88,7 +88,9 @@ class Projects::ListMyQuery < ApplicationQuery
|
||||
else
|
||||
if @home_top_ids.present?
|
||||
scope = scope.distinct.order("FIELD(projects.id, #{@home_top_ids.join(",")}) desc, projects.#{sort} #{sort_direction}")
|
||||
else
|
||||
elsif params[:topic_name].present?
|
||||
scope = scope.distinct.order("project_topics.id asc, projects.#{sort} #{sort_direction}")
|
||||
else
|
||||
scope = scope.distinct.order("projects.#{sort} #{sort_direction}")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user