Update voice_teardown_service.rb

This commit is contained in:
Muhsin
2026-04-08 13:32:14 +04:00
parent 986f3ebc3a
commit ddbd81b85e
@@ -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