Skip to content

Commit

Permalink
Turn off emails to super bouncers
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Jan 17, 2024
1 parent b68cc56 commit c97fed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/email_events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def mailgun_params

def process_bounce
@user.increment(:emails_bounced)
@user.frequency = [] if @user.is_free?
@user.frequency = [] if @user.is_free? || @user.emails_bounced > 20
@user.save
end

Expand Down

0 comments on commit c97fed7

Please sign in to comment.