diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2019-07-16 13:12:37 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-07-16 13:12:37 +0000 |
commit | 556d213cbc8b2ce44fd4d7fafde0a28804d3ae29 (patch) | |
tree | e5c6553cf1557b9f75166d4b99e71ec570acc626 /lib/api/commits.rb | |
parent | f1b257f32ba8e9118b9e5ac84fd3c97d070551bb (diff) | |
download | gitlab-ce-556d213cbc8b2ce44fd4d7fafde0a28804d3ae29.tar.gz |
Refactored WebIdeCommitsCount class
We're adding more redis base counters to the web ide and other
classes. We're refactoring this class in other to use the logic
in other places.
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 eebded87ebc..c414ad75d9d 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::WebIdeCommitsCounter.increment if find_user_from_warden + Gitlab::UsageDataCounters::WebIdeCommitsCounter.increment if find_user_from_warden present commit_detail, with: Entities::CommitDetail, stats: params[:stats] else |