debian-mirror-gitlab/app/services/notes/resolve_service.rb
2018-11-18 11:00:15 +05:30

11 lines
269 B
Ruby

# 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