diff --git a/app/controllers/webhooks_controller.rb b/app/controllers/webhooks_controller.rb index 094c234efbe..6292d5f1eb5 100644 --- a/app/controllers/webhooks_controller.rb +++ b/app/controllers/webhooks_controller.rb @@ -133,6 +133,8 @@ class WebhooksController < ActionController::Base return if email_log.nil? email_log.update_columns(bounced: true) + return if email_log.user.nil? || email_log.user.email.blank? + Email::Receiver.update_bounce_score(email_log.user.email, bounce_score) end