user_id.rb 322 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Zendesk::Ticket::Comment::UserId < Sequencer::Unit::Base
  3. uses :resource, :user_map
  4. provides :user_id
  5. def process
  6. state.provide(:user_id) do
  7. user_map.fetch(resource.author_id, 1)
  8. end
  9. end
  10. end