summaryrefslogtreecommitdiff
path: root/lib/api/helpers/packages_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers/packages_helpers.rb')
-rw-r--r--lib/api/helpers/packages_helpers.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/helpers/packages_helpers.rb b/lib/api/helpers/packages_helpers.rb
index e1898d28ef7..2221eec0f82 100644
--- a/lib/api/helpers/packages_helpers.rb
+++ b/lib/api/helpers/packages_helpers.rb
@@ -50,7 +50,8 @@ module API
def track_package_event(event_name, scope, **args)
::Packages::CreateEventService.new(nil, current_user, event_name: event_name, scope: scope).execute
- track_event(event_name, **args)
+ category = args.delete(:category) || self.options[:for].name
+ ::Gitlab::Tracking.event(category, event_name.to_s, **args)
end
end
end