deleted.rb 396 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Zendesk::Ticket::Skip::Deleted < Sequencer::Unit::Base
  3. uses :resource
  4. provides :action
  5. def process
  6. return if resource.status != 'deleted'
  7. logger.info { "Skipping. Zendesk Ticket ID '#{resource.id}' is in 'deleted' state." }
  8. state.provide(:action, :skipped)
  9. end
  10. end