mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
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:
parent
23c010f034
commit
96fae4a8d4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue