Change summary
lib/tel_selections.rb | 6 ++++++
1 file changed, 6 insertions(+)
Detailed changes
@@ -185,6 +185,8 @@ class TelSelections
def fetch_local_inventory
return EMPromise.resolve([]) unless @sql_query
+ Command.log.info("AvailableNumbers.fetch_local_inventory", @sql_query)
+
@db.query_defer(@sql_query[0], @sql_query[1..-1]).then { |rows|
rows.map { |row|
Tn::LocalInventory.new(Tn::Option.new(
@@ -461,6 +463,10 @@ 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")])
new(source)
end