diff options
Diffstat (limited to 'app/services/resource_events/change_milestone_service.rb')
-rw-r--r-- | app/services/resource_events/change_milestone_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/resource_events/change_milestone_service.rb b/app/services/resource_events/change_milestone_service.rb index 24935a3327a..a092d807d8f 100644 --- a/app/services/resource_events/change_milestone_service.rb +++ b/app/services/resource_events/change_milestone_service.rb @@ -13,6 +13,12 @@ module ResourceEvents private + def track_event + return unless resource.is_a?(WorkItem) + + Gitlab::UsageDataCounters::WorkItemActivityUniqueCounter.track_work_item_milestone_changed_action(author: user) + end + def create_event ResourceMilestoneEvent.create(build_resource_args) end |