user_id.rb 285 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Zendesk::Ticket::UserId < Sequencer::Unit::Common::Provider::Named
  3. uses :resource, :user_map
  4. private
  5. def user_id
  6. user_map.fetch(resource.requester_id, 1)
  7. end
  8. end