Don't try to use the nil customers

Stephen Paul Weber created

Change summary

bin/sim_job | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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