diff --git a/lib/bandwidth_tn_repo.rb b/lib/bandwidth_tn_repo.rb index 29f5e3044d3ccbbb8f075d11fe6f54eebab0d897..bf2aeb109433ceaf8c148e2ca7d7d1653efe8a09 100644 --- a/lib/bandwidth_tn_repo.rb +++ b/lib/bandwidth_tn_repo.rb @@ -49,7 +49,7 @@ class BandwidthTnRepo def stash_for_later(tel, btn) details = btn.get_rate_center region = details[:state] - locality = details[:rate_center] + locality = details[:city] params = [tel, region, locality, CONFIG[:creds][:account]] DB.exec(STASH_QUERY, params) end diff --git a/test/test_admin_command.rb b/test/test_admin_command.rb index a90f8b9e481a778408bdf75d2e9d96b0af7ecd26..313e2b3bb3a6906e7b02dfb1ab0a397ef8b7adb0 100644 --- a/test/test_admin_command.rb +++ b/test/test_admin_command.rb @@ -294,7 +294,7 @@ class AdminCommandTest < Minitest::Test sgx, admin = admin_command("+15566667777") - sql_params = ["+15566667777", "NY", "NWYRCYZN01", "test_bw_account"] + sql_params = ["+15566667777", "NY", "MANHATTAN", "test_bw_account"] BandwidthTnRepo::DB.expect( :exec,