1
0
Fork 0
forked from gitea/nas

Use hash arguments to group when possible (#32916)

This commit is contained in:
Matt Jankowski 2024-11-19 05:36:02 -05:00 committed by GitHub
parent 2b5faa2ba3
commit 37f00fb018
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -17,6 +17,6 @@ class AnnualReport::MostUsedApps < AnnualReport::Source
private
def most_used_apps
report_statuses.joins(:application).group('oauth_applications.name').order(count_all: :desc).limit(SET_SIZE).count
report_statuses.joins(:application).group(oauth_applications: [:name]).order(count_all: :desc).limit(SET_SIZE).count
end
end