remove active domains from whois job

This commit is contained in:
olegphenomenon 2021-10-20 11:37:12 +03:00
parent ed92974b7c
commit f75d975b29
2 changed files with 2 additions and 3 deletions

View file

@ -37,8 +37,7 @@ namespace :whois do
end end
print "\n-----> Update disputed domains whois_records" print "\n-----> Update disputed domains whois_records"
Dispute.active.find_in_batches.each do |group| Dispute.find_in_batches.each do |group|
UpdateWhoisRecordJob.perform_later group.map(&:domain_name), 'disputed' UpdateWhoisRecordJob.perform_later group.map(&:domain_name), 'disputed'
end end
end end

View file

@ -16,7 +16,7 @@ class SendEInvoiceJobTest < ActiveJob::TestCase
domain_names = ReservedDomain.find_in_batches.first.map(&:name) domain_names = ReservedDomain.find_in_batches.first.map(&:name)
assert_domains_processed_by_task(domain_names, 'reserved') assert_domains_processed_by_task(domain_names, 'reserved')
end end
private private
def assert_domains_processed_by_task(domain_names, type) def assert_domains_processed_by_task(domain_names, type)