mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 13:06:18 +02:00
Destroy validation events before job
This commit is contained in:
parent
4dcd6d765c
commit
de53f0422f
1 changed files with 1 additions and 2 deletions
|
@ -18,13 +18,12 @@ namespace :verify_email do
|
|||
options = RakeOptionParserBoilerplate.process_args(options: options,
|
||||
banner: banner,
|
||||
hash: opts_hash)
|
||||
ValidationEvent.old_records.destroy_all
|
||||
email_contacts = prepare_contacts(options)
|
||||
email_contacts.each do |email|
|
||||
VerifyEmailsJob.set(wait_until: spam_protect_timeout(options))
|
||||
.perform_later(email: email, check_level: check_level(options))
|
||||
end
|
||||
|
||||
ValidationEvent.old_records.destroy_all
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue