Replies: 1 comment
-
Setting the return to a nullable string string? and then returning null when an email doesn't need to be sent causes the function to "succeed" as expected. Closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Referencing this suggestion here #issuecomment-991403796 by @kshyju works great when I do have an email to send. But how do I gracefully exit when my code determines that it should not send an email? I've tried returning an empty string, returning an empty string as JSON, and returning an "empty"
SendGridMessage
as JSON and the validation throws errors.Any guidance would be greatly appreciated!!
Thanks,
Matt
Beta Was this translation helpful? Give feedback.
All reactions