diff --git a/app/services/twilio/oneoff_sms_campaign_service.rb b/app/services/twilio/oneoff_sms_campaign_service.rb index a3ee9d339..a0cd12a25 100644 --- a/app/services/twilio/oneoff_sms_campaign_service.rb +++ b/app/services/twilio/oneoff_sms_campaign_service.rb @@ -27,11 +27,7 @@ class Twilio::OneoffSmsCampaignService end def send_message(to:, from:, content:) - client.messages.create({ - body: content, - from: from, - to: to - }) + client.messages.create(body: content, from: from, to: to) end def client diff --git a/app/services/twilio/send_on_twilio_service.rb b/app/services/twilio/send_on_twilio_service.rb index 684eb31fe..a440740e4 100644 --- a/app/services/twilio/send_on_twilio_service.rb +++ b/app/services/twilio/send_on_twilio_service.rb @@ -6,7 +6,7 @@ class Twilio::SendOnTwilioService < Base::SendOnChannelService end def perform_reply - twilio_message = client.messages.create(message_params) + twilio_message = client.messages.create(**message_params) message.update!(source_id: twilio_message.sid) end