mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
send liquidated email only once
This commit is contained in:
parent
19611fe429
commit
78be26c0d4
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ class CompanyRegisterStatusJob < ApplicationJob
|
|||
when Contact::REGISTERED
|
||||
lift_force_delete(contact) if check_for_force_delete(contact)
|
||||
when Contact::LIQUIDATED
|
||||
ContactInformMailer.company_liquidation(contact: contact).deliver_now
|
||||
unless contact.company_register_status == Contact::LIQUIDATED
|
||||
ContactInformMailer.company_liquidation(contact: contact).deliver_now
|
||||
end
|
||||
else
|
||||
delete_process(contact)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue