diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index c00904cee..ab2f02484 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -94,7 +94,7 @@ def index end def show - repository = Client.where(symbol: params[:id]).where(deleted_at: nil).where(client_type: "repository").first + repository = Client.where(symbol: params[:id]).where(deleted_at: nil).first fail ActiveRecord::RecordNotFound unless repository.present? options = {}