更新gems源

This commit is contained in:
2023-02-13 10:22:36 +08:00
parent c0271707a1
commit 7d17b654f6
2 changed files with 4 additions and 2 deletions

View File

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