Use notification_template to determine org/priv liquidation template

This commit is contained in:
Karl Erik Õunapuu 2020-11-04 16:45:32 +02:00
parent 1217ed633f
commit de5b85b115
No known key found for this signature in database
GPG key ID: C9DD647298A34764

View file

@ -155,7 +155,7 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
end
def notify_parties(reason)
ent = registrant.org? ? 'legal_person' : 'private_person' if reason == 'ENTITY_BURIED'
ent = notification_template if reason == 'ENTITY_BURIED'
ent ||= reason.downcase
self.template_name = ent