diff --git a/Gemfile b/Gemfile index 4f0f76fcd..0645fa72c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ -source 'https://gems.ruby-china.com' +#source 'https://gems.ruby-china.com' +source 'https://mirrors.cloud.tencent.com/rubygems/' git_source(:github) { |repo| "https://github.com/#{repo}.git" } gem 'rails', '~> 5.2.0' diff --git a/app/queries/projects/list_query.rb b/app/queries/projects/list_query.rb index 82d612375..8a8fa2f36 100644 --- a/app/queries/projects/list_query.rb +++ b/app/queries/projects/list_query.rb @@ -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