forked from Gitlink/forgeplus
fixed 项目搜索仅公开项目,platform=forge
This commit is contained in:
parent
2618dc5798
commit
79d46231ba
|
@ -34,6 +34,7 @@ class Projects::ListQuery < ApplicationQuery
|
||||||
|
|
||||||
def by_search(items)
|
def by_search(items)
|
||||||
ids = Projects::ElasticsearchService.call(params[:search])
|
ids = Projects::ElasticsearchService.call(params[:search])
|
||||||
|
items = items.where(platform: 'forge')
|
||||||
if ids.present?
|
if ids.present?
|
||||||
items.where(id: ids).by_name_or_identifier(params[:search])
|
items.where(id: ids).by_name_or_identifier(params[:search])
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue