mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Don't double check if contact can be archived when ran via Task
This commit is contained in:
parent
816102130b
commit
11fc484270
3 changed files with 7 additions and 5 deletions
|
@ -4,7 +4,7 @@ namespace :contacts do
|
|||
task archive: :environment do
|
||||
puts 'Starting to gather archivable contacts'
|
||||
inactive_contacts = InactiveContacts.new
|
||||
archived_contacts = inactive_contacts.archive
|
||||
archived_contacts = inactive_contacts.archive(verified: true)
|
||||
|
||||
puts "Archived total: #{archived_contacts.count}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue