Closed frahugo closed 7 years ago
Good point, do you want to work out a PR ?
Working on this now all.
Alrighty @johanb and @frahugo here is a rather simple attempt at solving this. Really we shouldn't push it back into the subscribe/unsubscribe flow because we aren't subscribing, etc. I feel we should modify the User data directly when the sub fails. Thoughts?
Interface::List was decoupled from the AR models. I think it should throw an exception and let the caller decide what to do.
@frahugo here is an example of the fail/raise solution you mentioned. What yah think?>
bump on this @frahugo / @johanb any opinion on the error throw and updating the User object?
When we subscribe a subscriber, if Mailchimp returns an error saying that the email is banned, we still flag the Spree::User as subscribed.