alexgaribay / sendgrid_elixir

Create and send composable emails with Elixir and SendGrid.
MIT License
86 stars 44 forks source link

Handle no changes for recipient #19

Open kelostrada opened 6 years ago

kelostrada commented 6 years ago

When we create new recipient it is possible that we actually update an existing one. In such case Sendgrid API doesn't send back the recipient_id inside persisted_recipients array. We need to handle this because we can easily get this error: (MatchError) no match of right hand side value: []

Also I added search from Sendgrid API

lukaszsamson commented 4 years ago

I rebased and cleaned up this PR. @alexgaribay can you review and marge it?