diff --git a/bin/sim_job b/bin/sim_job index 33fefc40ef8a234f18cea2d812e0cdb6ff15e457..e89dc386ebeb6a8b73d793c500cfee992f7bf2b8 100755 --- a/bin/sim_job +++ b/bin/sim_job @@ -231,7 +231,7 @@ def fetch_customers(cids) CUSTOMER_REPO.find(id).catch_only(CustomerRepo::NotFound) { nil } } ).then do |customers| - Hash[customers.map { |c| [c.customer_id, JobCustomer.new(c)] }] + Hash[customers.compact.map { |c| [c.customer_id, JobCustomer.new(c)] }] end end