gitlab-org--gitlab-foss/app/services/notes/destroy_service.rb
2018-11-09 16:56:48 -02:00

13 lines
254 B
Ruby

# frozen_string_literal: true
module Notes
class DestroyService < ::Notes::BaseService
def execute(note)
TodoService.new.destroy_target(note) do |note|
note.destroy
end
clear_noteable_diffs_cache(note)
end
end
end