Skip to content

Commit

Permalink
Fix standardrb complaint
Browse files Browse the repository at this point in the history
I forgot to run it after updating. Wups.
  • Loading branch information
gaffneyc committed Jan 16, 2025
1 parent 2c1dac4 commit adf8778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def voicemail_notification(url, duration, phone_number)
message.add_personalization(personalization)

message.add_content(SendGrid::Content.new(type: "text/plain", value: body))
message.add_content(SendGrid::Content.new(type: "text/html", value: body.gsub(/\n/, "<br>")))
message.add_content(SendGrid::Content.new(type: "text/html", value: body.gsub("\n", "<br>")))

response = @sendgrid.client.mail._("send").post(request_body: message.to_json)
raise "#{response.status_code}: #{response.body}" if response.status_code != "202"
Expand Down

0 comments on commit adf8778

Please sign in to comment.