chore: Fix Twilio send message error (#2761)

This commit is contained in:
Sojan Jose 2021-08-06 13:34:20 +05:30 committed by GitHub
parent f934a5eb04
commit edec74c389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -27,11 +27,7 @@ class Twilio::OneoffSmsCampaignService
end end
def send_message(to:, from:, content:) def send_message(to:, from:, content:)
client.messages.create({ client.messages.create(body: content, from: from, to: to)
body: content,
from: from,
to: to
})
end end
def client def client

View file

@ -6,7 +6,7 @@ class Twilio::SendOnTwilioService < Base::SendOnChannelService
end end
def perform_reply def perform_reply
twilio_message = client.messages.create(message_params) twilio_message = client.messages.create(**message_params)
message.update!(source_id: twilio_message.sid) message.update!(source_id: twilio_message.sid)
end end