Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mailgun notifications when no attachments provided #80

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

ghost
Copy link

@ghost ghost commented Dec 1, 2023

Description:
This PR updates the mailgun notification data formatting logic to fix an error when no attachments key-value pair is passed when making API call, causing error attachments is not iterable. Attachments formatting is done only when the attachments key-value pair is passed now.

Related changes:

  • Update formatNotificationData method to call formatAttachments only when there are attachments passed in API call

Update formatNotificationData method to call formatAttachments only when there are attachments passed in API call
@ghost ghost added the ready for review label Dec 1, 2023
@ghost ghost self-assigned this Dec 1, 2023
@osm-vishnukyatannawar osm-vishnukyatannawar merged commit e558ce2 into main Dec 6, 2023
8 checks passed
@osm-vishnukyatannawar osm-vishnukyatannawar deleted the fix/mailgun-attachments branch December 6, 2023 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants