imports/vx/both/code/util.js
/**
     * Determine whether the specified domain is active (i.e., not retired).
     * This is a compound condition that takes into account the state of the tenant.
     *
     * @param {string} domainId Domain ID.
     * @return {boolean} True if both domain and tenant are active.
     */
Determine whether the specified domain is active .
This is a compound condition that takes into account the state of the tenant.

@param {string} domainId Domain ID.
@return {boolean} True if both domain and tenant are active.
Determine whether the specified domain is active . This is a compound condition that takes into account the state of the tenant . @param { string } domainId Domain ID . @return { boolean } True if both domain and tenant are active .
isDomainActive(domainId) {
        if (!domainId) {
            return false
        }
        let domain = Domains.findOne(domainId, { fields: { tenant: 1, dateRetired: 1 }})
        if (!domain) {
            return false
        }
        return Util.isTenantActive(domain.tenant) && !domain.dateRetired
    }
isDomainActive ( domainId ) { if ( ! domainId ) { return false } let domain = Domains . findOne ( domainId , { fields : { tenant : 1 , dateRetired : 1 } } ) if ( ! domain ) { return false } return Util . isTenantActive ( domain . tenant ) && ! domain . dateRetired }
Determine whether the specified domain is active (i.e., not retired).
Determine whether the specified domain is active ( i . e . not retired ) .