Merge pull request #2723 from internetee/company-validator-during-creation

feat: restore company validation for Estonian organizations
This commit is contained in:
Timo Võhmar 2025-02-12 10:33:28 +02:00 committed by GitHub
commit 38dc5466e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 183 additions and 94 deletions

View file

@ -89,6 +89,8 @@ class Domain < ApplicationRecord
has_many :registrant_verifications, dependent: :destroy
has_one :csync_record, dependent: :destroy
attribute :skip_whois_record_update, :boolean, default: false
after_initialize do
self.pending_json = {} if pending_json.blank?
self.statuses = [] if statuses.nil?
@ -721,6 +723,8 @@ class Domain < ApplicationRecord
end
def update_whois_record
return if skip_whois_record_update
UpdateWhoisRecordJob.set(wait: 1.minute).perform_later name, 'domain'
end