Fix inventory item counter on inventory page [SCI-10997]

This commit is contained in:
Andrej 2024-08-20 17:27:33 +02:00
parent e561594a47
commit dd42485cd4

View file

@ -13,7 +13,7 @@ module Lists
.joins(:team)
.select('repositories.*')
.select('MAX(teams.name) AS team_name')
.select('COUNT(repository_rows.*) AS row_count')
.select('COUNT(DISTINCT(repository_rows.*)) AS row_count')
.select('MAX(creators.full_name) AS created_by_user')
.select('MAX(archivers.full_name) AS archived_by_user')
.select(shared_sql_select)