Delete original WhoisRecord after domain deletion

This commit is contained in:
Alex Sherman 2021-01-05 17:21:13 +05:00
parent 0c5ef72c7d
commit b60a7e571f
3 changed files with 16 additions and 12 deletions

View file

@ -78,7 +78,7 @@ class Domain < ApplicationRecord
true
end
after_commit :update_whois_record, unless: -> { domain_name.at_auction? }
after_commit :update_whois_record
after_create :update_reserved_domains
def update_reserved_domains