imports/vx/both/code/util.js
/**
     * Find the list of users within a specified domain.
     *
     * @param {object} domainId Domain ID.
     * @param {string} includeRetiredUsers True to include retired users.
     * @return {object} Cursor of users in domain.
     */
Find the list of users within a specified domain.
@param {object} domainId Domain ID.
@param {string} includeRetiredUsers True to include retired users.
@return {object} Cursor of users in domain.
Find the list of users within a specified domain . @param { object } domainId Domain ID . @param { string } includeRetiredUsers True to include retired users . @return { object } Cursor of users in domain .
findUsersInDomain(domainId, includeRetiredUsers) {
        let criteria = {}
        criteria["profile.domains"] = { $elemMatch: { domainId: domainId } }
        if (!includeRetiredUsers) {
            criteria["profile.dateRetired"] = { $exists : false }
        }
        return Meteor.users.find(criteria)
    }
findUsersInDomain ( domainId , includeRetiredUsers ) { let criteria = { } criteria [ "profile.domains" ] = { $elemMatch : { domainId : domainId } } if ( ! includeRetiredUsers ) { criteria [ "profile.dateRetired" ] = { $exists : false } } return Meteor . users . find ( criteria ) }
Find the list of users within a specified domain.
Find the list of users within a specified domain .