diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2019-07-17 23:45:35 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-07-17 23:45:35 +0000 |
commit | bcd2458076512ad80c6e470d9434618f27dfec3c (patch) | |
tree | 92081015f8202b37abb3e6c79808e84ce0dccbe9 /lib/api/commits.rb | |
parent | f74bd44d2a9171c51ec7c9a622d7628044791d9e (diff) | |
download | gitlab-ce-bcd2458076512ad80c6e470d9434618f27dfec3c.tar.gz |
Refactor RedisCounter and WebIdeCommitsCounter
This MR refactor RedisCounter and WebIdeCommitsCounter
to be reused by other components.
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r-- | lib/api/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb index c414ad75d9d..fe910d46f6c 100644 --- a/lib/api/commits.rb +++ b/lib/api/commits.rb @@ -126,7 +126,7 @@ module API if result[:status] == :success commit_detail = user_project.repository.commit(result[:result]) - Gitlab::UsageDataCounters::WebIdeCommitsCounter.increment if find_user_from_warden + Gitlab::UsageDataCounters::WebIdeCounter.increment_commits_count if find_user_from_warden present commit_detail, with: Entities::CommitDetail, stats: params[:stats] else |