debian-mirror-gitlab/app/services/discussions/unresolve_service.rb
2021-03-11 19:13:27 +05:30

21 lines
436 B
Ruby

# frozen_string_literal: true
module Discussions
class UnresolveService < Discussions::BaseService
include Gitlab::Utils::StrongMemoize
def initialize(discussion, user)
@discussion = discussion
@user = user
super
end
def execute
@discussion.unresolve!
Gitlab::UsageDataCounters::MergeRequestActivityUniqueCounter
.track_unresolve_thread_action(user: @user)
end
end
end