mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
refactoring
This commit is contained in:
parent
f0de396e82
commit
77b99b3d2e
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@ class BouncedEmailsCleanerJob < ApplicationJob
|
|||
|
||||
def perform
|
||||
BouncedMailAddress.find_each do |bounce|
|
||||
count = Contact.where(email: bounce.email).count
|
||||
bounce.destroy if count.zero?
|
||||
count = Contact.where(email: bounce.email).count
|
||||
bounce.destroy if count.zero?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue