mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Updated bullet issue for Domain create
This commit is contained in:
parent
0533d16028
commit
c5860bde98
3 changed files with 6 additions and 6 deletions
|
@ -68,11 +68,8 @@ class Epp::Domain < Domain
|
|||
end
|
||||
|
||||
def attach_default_contacts
|
||||
# for bullet, owner contact validates registrar and triggers bullet
|
||||
owner_contact_included = Contact.where(id: owner_contact.id).includes(:registrar).first
|
||||
|
||||
tech_contacts << owner_contact_included if tech_contacts.blank?
|
||||
admin_contacts << owner_contact_included if admin_contacts.blank? && owner_contact.priv?
|
||||
tech_contacts << owner_contact if tech_contacts.blank?
|
||||
admin_contacts << owner_contact if admin_contacts.blank? && owner_contact.priv?
|
||||
end
|
||||
|
||||
# rubocop: disable Metrics/PerceivedComplexity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue