Don't double check if contact can be archived when ran via Task

This commit is contained in:
Karl Erik Õunapuu 2020-09-03 16:07:09 +03:00
parent 816102130b
commit 11fc484270
No known key found for this signature in database
GPG key ID: C9DD647298A34764
3 changed files with 7 additions and 5 deletions

View file

@ -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