fix tests -> count of running jobs were decreased

This commit is contained in:
oleghasjanov 2025-01-13 11:50:42 +02:00
parent bbdf44583c
commit 19df0cd57f
2 changed files with 2 additions and 3 deletions

View file

@ -75,8 +75,7 @@ class CompanyRegisterStatusJob < ApplicationJob
def check_for_force_delete(contact)
contact.registrant_domains.any? do |domain|
notes = domain.status_notes[DomainStatus::FORCE_DELETE]
notes && notes.include?("Company no: #{contact.ident}")
domain.force_delete_scheduled? && notes.include?("Company no: #{contact.ident}")
end
end