module Eco module API class UseCases class DefaultCases class EmailAsIdCase < DefaultCase def process @cases.define("email-as-id", type: :transform) do |people, session, options, usecase| job = session.job_group("main").new("update", usecase: usecase, type: :update, sets: :core) people.each do |person| person.external_id = person.email job.add(person) end end end end end end end end