Merge branch 'standalone_develop' into pre_trustie_server

This commit is contained in:
“xxq250” 2022-11-01 18:14:27 +08:00
commit dfc16bf1f8
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class Projects::ListQuery < ApplicationQuery
def by_search(items)
ids = Projects::ElasticsearchService.call(params[:search])
items = items.where(platform: 'forge')
if ids.present?
items.where(id: ids).by_name_or_identifier(params[:search])
else