summaryrefslogtreecommitdiff
path: root/app/services/notes/resolve_service.rb
blob: cf24795f05014bd8727d572346a1f292e3c8ac22 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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