Meteor not publishing correct users

I'm trying to publish a list of users. I'm checking a collection for accoutActive: true and then fetching the studentUserId. I thought I could then use this to find the meteor.user however it returns nothing. Could someone please tell me what I'm missing.

Meteor.publish('list', function() {   var activeStudent = StudentAccountStatus.find(                           {"accountActive": true},                           {fields:                             {"studentUserId": 1}                           }                         ).fetch();    return Meteor.users.find(                     {_id: activeStudent}                   ); }); 


Category: meteor Time: 2016-07-31 Views: 3
Tags: meteor

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.180 (s). 12 q(s)