summaryrefslogtreecommitdiff
path: root/lib/gitlab/usage_data.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-15 12:08:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-15 12:08:09 +0000
commit37439afe69efe58e2351d899d231670d945be5e2 (patch)
tree0bb4989879fcc18396c013741a3a21c7cc1cb637 /lib/gitlab/usage_data.rb
parent8353b844b31ebfa1181014e5a409ba93c22d8ad0 (diff)
downloadgitlab-ce-37439afe69efe58e2351d899d231670d945be5e2.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/usage_data.rb')
-rw-r--r--lib/gitlab/usage_data.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index e306f4a15ab..24f6cc725f6 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -768,8 +768,8 @@ module Gitlab
# rubocop:disable CodeReuse/ActiveRecord
def distinct_count_user_auth_by_provider(time_period)
- counts = auth_providers_except_ldap.each_with_object({}) do |provider, hash|
- hash[provider] = distinct_count(
+ counts = auth_providers_except_ldap.index_with do |provider|
+ distinct_count(
::AuthenticationEvent.success.for_provider(provider).where(time_period), :user_id)
end