summaryrefslogtreecommitdiff
path: root/app/services/notes/resolve_service.rb
blob: 0db8ee809a9e29011ef5563ee6ca2d30984df34b (plain)
1
2
3
4
5
6
7
8
9
module Notes
  class ResolveService < ::BaseService
    def execute(note)
      note.resolve!(current_user)

      ::MergeRequests::ResolvedDiscussionNotificationService.new(project, current_user).execute(note.noteable)
    end
  end
end