gitlab-org--gitlab-foss/app/services/notes/resolve_service.rb

12 lines
269 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Notes
class ResolveService < ::BaseService
def execute(note)
note.resolve!(current_user)
::MergeRequests::ResolvedDiscussionNotificationService.new(project, current_user).execute(note.noteable)
end
end
end