fix: adjust template_name access for hstore field

Use direct accessor method for template_name instead of hash access since force_delete_data is stored as hstore
This commit is contained in:
oleghasjanov 2025-01-14 10:27:05 +02:00
parent 23c010f034
commit 96fae4a8d4

View file

@ -79,7 +79,7 @@ class CompanyRegisterStatusJob < ApplicationJob
notes_check = notes && notes.include?("Company no: #{contact.ident}")
if !notes_check && domain.force_delete_data.present?
domain.force_delete_data['template_name'] == 'invalid_company'
domain.template_name == 'invalid_company'
else
notes_check
end