Sha256: 2f66c848949b13c9b045e123fb916928b8150aa29e8867117632495efa2e457c
Contents?: true
Size: 750 Bytes
Versions: 16
Compression:
Stored size: 750 Bytes
Contents
module Eco module API module UseCases class DefaultCases class NewIdCase < BaseCase def process @cases.define("new-id", type: :sync) do |entries, people, session| job = session.job_group("main").new("update", type: :update, sets: :core) entries.each.with_index do |entry, i| if person = people.find(entry) person.external_id = entry.external_id job.add(person) else session.logger.error("Entry(#{i}) - this person does not exist: #{entry.to_s(:identify)}") end end end end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems