skip.rb 302 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::TimeEntry::Skip < Sequencer::Unit::Base
  3. uses :resource
  4. provides :action
  5. def process
  6. return if resource['log_type'] != 'VIEWED'
  7. state.provide(:action, :skipped)
  8. end
  9. end