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}                   ); }); 

Replay

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

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

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