Change summary
lib/tel_selections.rb | 8 ++------
test/test_helper.rb | 2 +-
2 files changed, 3 insertions(+), 7 deletions(-)
Detailed changes
@@ -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) {}
@@ -175,7 +175,7 @@ CONFIG = {
}
},
offer_codes: {
- "pplus" => "xmpp:pplus"
+ pplus: "xmpp:pplus"
},
bandwidth_site: "test_site",
bandwidth_peer: "test_peer",