imports/vx/server/reporter/reporter.js
/**
     * Find all users that have one or more reports that need to be generated.
     */
Find all users that have one or more reports that need to be generated.
Find all users that have one or more reports that need to be generated .
findUsersWithScheduledReports() {
        Meteor.users.find( { "profile.reportPreferences.nextDate" : { $lte: new Date() } } ).forEach(user => {
            Reporter.createScheduledReports(user)
        })
    }
findUsersWithScheduledReports ( ) { Meteor . users . find ( { "profile.reportPreferences.nextDate" : { $lte : new Date ( ) } } ) . forEach ( user => { Reporter . createScheduledReports ( user ) } ) }
Find all users that have one or more reports that need to be generated.
Find all users that have one or more reports that need to be generated .