From b9038191cbd35c0026fd88c3f317f40d718fe524 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 26 Jan 2026 13:55:34 -0500 Subject: [PATCH] config map is symbolized --- lib/tel_selections.rb | 8 ++------ test/test_helper.rb | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/tel_selections.rb b/lib/tel_selections.rb index fe2d17cdb7f554dd8268778fa9e0e58343bb7b89..bba62c7c1e1df23647e24a133bc732c2e8c050be 100644 --- a/lib/tel_selections.rb +++ b/lib/tel_selections.rb @@ -163,7 +163,6 @@ class TelSelections end def tns - Command.log.debug("BandwidthIris::AvailableNumber.list", @iris_query) unless (result = fetch_cache) result = fetch_bandwidth_inventory + fetch_local_inventory.sync end @@ -463,11 +462,8 @@ class TelSelections customer.with_plan("USD").activate_plan_starting_now claimed }.then { |claimed| - Command.log.info( - "OfferCode.for", - claimed: claimed, offer_codes: CONFIG[:offer_codes] - ) - if (source = CONFIG[:offer_codes][claimed&.dig("creator_id")]) + creator = claimed&.dig("creator_id")&.to_sym + if (source = CONFIG[:offer_codes][creator]) new(source) end }.catch_only(InvitesRepo::Invalid) {} diff --git a/test/test_helper.rb b/test/test_helper.rb index b9da2f8c16865dd0df2d84f823966ad566cfef12..7c3f0ebe4676b41cc9bd981fd317b80af3958056 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -175,7 +175,7 @@ CONFIG = { } }, offer_codes: { - "pplus" => "xmpp:pplus" + pplus: "xmpp:pplus" }, bandwidth_site: "test_site", bandwidth_peer: "test_peer",