Remove select

This commit is contained in:
Urban Rotnik 2020-06-03 23:18:22 +02:00
parent 69d086ba32
commit a93e2a5d6f

View file

@ -151,7 +151,6 @@ module ReportsHelper
.where(original_repositories_repositories: { id: nil })
.select('DISTINCT ON ("repositories"."parent_id") "repositories".*')
.order(:parent_id, updated_at: :desc)
.select(:id, :name)
snapshots.each { |snapshot| snapshot.name = "#{snapshot.name} #{t('projects.reports.index.deleted')}" }
(live_repositories + snapshots).sort_by { |r| r.name.downcase }