diff --git a/enterprise/app/services/twilio/voice_teardown_service.rb b/enterprise/app/services/twilio/voice_teardown_service.rb index b244ce4be..12e567983 100644 --- a/enterprise/app/services/twilio/voice_teardown_service.rb +++ b/enterprise/app/services/twilio/voice_teardown_service.rb @@ -21,9 +21,9 @@ class Twilio::VoiceTeardownService def twilio_client @twilio_client ||= if channel.api_key_sid.present? && channel.try(:api_key_secret).present? - ::Twilio::REST::Client.new(channel.api_key_sid, channel.api_key_secret, channel.account_sid) - else - ::Twilio::REST::Client.new(channel.account_sid, channel.auth_token) - end + ::Twilio::REST::Client.new(channel.api_key_sid, channel.api_key_secret, channel.account_sid) + else + ::Twilio::REST::Client.new(channel.account_sid, channel.auth_token) + end end end