chore: Fix Twilio send message error (#2761)
This commit is contained in:
parent
f934a5eb04
commit
edec74c389
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue