mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 21:46:24 +02:00
added more logs
This commit is contained in:
parent
962037c5a0
commit
5778c5e4e9
1 changed files with 9 additions and 5 deletions
|
@ -81,16 +81,20 @@ module Actions
|
||||||
def maybe_company_is_relevant
|
def maybe_company_is_relevant
|
||||||
return true unless contact.org?
|
return true unless contact.org?
|
||||||
|
|
||||||
if contact.ident.blank?
|
Rails.logger.info "======= I AM HERE"
|
||||||
contact.add_epp_error('2003', nil, 'ident', "#{I18n.t('errors.messages.required_ident_attribute_missing')}\n #{contact.inspect}")
|
|
||||||
@error = true
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
company_status = contact.return_company_status
|
company_status = contact.return_company_status
|
||||||
|
Rails.logger.info "company_status: #{company_status}"
|
||||||
|
|
||||||
return if [Contact::REGISTERED, Contact::LIQUIDATED].include? company_status
|
return if [Contact::REGISTERED, Contact::LIQUIDATED].include? company_status
|
||||||
|
Rails.logger.info Contact::REGISTERED
|
||||||
|
Rails.logger.info Contact::LIQUIDATED
|
||||||
|
Rails.logger.info "======= I AM HERE 2"
|
||||||
|
|
||||||
contact.add_epp_error('2003', nil, 'ident', I18n.t('errors.messages.company_not_registered'))
|
contact.add_epp_error('2003', nil, 'ident', I18n.t('errors.messages.company_not_registered'))
|
||||||
|
|
||||||
|
Rails.logger.info "======="
|
||||||
|
|
||||||
@error = true
|
@error = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue