Registrant API: Fix company domain query

This commit is contained in:
Karl Erik Õunapuu 2021-02-26 15:11:54 +02:00
parent 1999493bac
commit 747aa502d0
No known key found for this signature in database
GPG key ID: C9DD647298A34764

View file

@ -202,7 +202,7 @@ class Domain < ApplicationRecord
companies = Contact.registrant_user_company_contacts(registrant_user) companies = Contact.registrant_user_company_contacts(registrant_user)
from( from(
"(#{registrant_user_administered_domains(registrant_user).to_sql} UNION " \ "(#{registrant_user_administered_domains(registrant_user).to_sql} UNION " \
"#{registrant_user_company_registrant(registrant_user).to_sql} UNION " \ "#{registrant_user_company_registrant(companies).to_sql} UNION " \
"#{registrant_user_domains_company(companies, except_tech: true).to_sql}) AS domains" "#{registrant_user_domains_company(companies, except_tech: true).to_sql}) AS domains"
) )
end end