imports/vx/both/code/util.js
/**
     * Determine whether the specified tenant is active (i.e., not retired).
     *
     * @param {string} tenandId Tenant ID.
     * @return {boolean} True if tenant is active.
     */
Determine whether the specified tenant is active .
@param {string} tenandId Tenant ID.
@return {boolean} True if tenant is active.
Determine whether the specified tenant is active . @param { string } tenandId Tenant ID . @return { boolean } True if tenant is active .
isTenantActive(tenantId) {
        if (!tenantId) {
            return false
        }
        let tenant = Tenants.findOne(tenantId, { fields: { dateRetired: 1 }})
        if (!tenant) {
            return false
        }
        return !tenant.dateRetired
    }
isTenantActive ( tenantId ) { if ( ! tenantId ) { return false } let tenant = Tenants . findOne ( tenantId , { fields : { dateRetired : 1 } } ) if ( ! tenant ) { return false } return ! tenant . dateRetired }
Determine whether the specified tenant is active (i.e., not retired).
Determine whether the specified tenant is active ( i . e . not retired ) .