diff --git a/bin/sim_job b/bin/sim_job index 5b0da4691f78180733e609111d09dc264474fd42..33fefc40ef8a234f18cea2d812e0cdb6ff15e457 100755 --- a/bin/sim_job +++ b/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