Skip to content

Commit

Permalink
Merge pull request #2746 from internetee/ident-of-nil-registrant-rais…
Browse files Browse the repository at this point in the history
…e-the-error

 add nil check for registrant in phone checker job
  • Loading branch information
vohmar authored Feb 3, 2025
2 parents b641235 + a0a055a commit 9112a48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/org_registrant_phone_checker_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def execute_bulk_checker(spam_delay)

def execute_single_checker(registrant_user_code)
registrant_user = Contact.where(ident_type: 'org', ident_country_code: 'EE').joins(:registrant_domains).find_by(code: registrant_user_code)
return if registrant_user.nil?

is_phone_number_matching = check_the_registrant_phone_number(registrant_user)

call_disclosure_action(is_phone_number_matching, registrant_user)
Expand Down

0 comments on commit 9112a48

Please sign in to comment.