Skip to content

Commit

Permalink
chore: use StrippedTextReply only if present
Browse files Browse the repository at this point in the history
  • Loading branch information
leggetter committed Feb 21, 2024
1 parent a33a8bb commit 6c6acc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformations/postmark-email-to-vonage-sms.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const emailToSms = (request, context) => {

const vonageRequestPayload = {
message_type: "text",
text: request.body.StrippedTextReply,
text: request.body.StrippedTextReply || request.body.TextBody,
to: toNumber,
from: fromNumber,
channel: "sms",
Expand Down

0 comments on commit 6c6acc5

Please sign in to comment.