Exclude planless customers

Stephen Paul Weber created

Change summary

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

Detailed changes

bin/sim_job 🔗

@@ -270,7 +270,7 @@ EM.run do
 	).then { SIM_REPO.all }.then { |sims|
 		load_customers!(decide_sim_actions(sims))
 	}.then { |items|
-		items = items.values.select(&:customer)
+		items = items.values.select { |item| item.customer&.currency }
 		EMPromise.all(items.map(&:call))
 	}.catch { |e|
 		LOG.error e