fix: update message creation method to avoid using bang operator (#167)
This commit is contained in:
parent
34b5b58d72
commit
6a220ea7fd
@ -37,7 +37,7 @@ class Twilio::SendOnTwilioService < Base::SendOnChannelService
|
|||||||
# Add messaging service or from number
|
# Add messaging service or from number
|
||||||
send_params = send_params.merge(channel.send(:send_message_from))
|
send_params = send_params.merge(channel.send(:send_message_from))
|
||||||
|
|
||||||
channel.send(:client).messages.create!(**send_params)
|
channel.send(:client).messages.create(**send_params) # rubocop:disable Rails/SaveBang
|
||||||
end
|
end
|
||||||
|
|
||||||
def template_params
|
def template_params
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user