Skip to content

Commit

Permalink
send liquidated email only once
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Jan 14, 2025
1 parent 160f896 commit 117478e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/jobs/company_register_status_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def proceed_company_status(contact, spam_time_delay)
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
Expand Down

0 comments on commit 117478e

Please sign in to comment.