mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 03:59:33 +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
|
when Contact::REGISTERED
|
||||||
lift_force_delete(contact) if check_for_force_delete(contact)
|
lift_force_delete(contact) if check_for_force_delete(contact)
|
||||||
when Contact::LIQUIDATED
|
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
|
else
|
||||||
delete_process(contact)
|
delete_process(contact)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue