I have this Meteor method on my server:
returnUsers: function(){
console.log(Meteor.users.find());
}
And the following call on my client:
'click #share_button': function(ev){
ev.preventDefault();
Meteor.call('returnUsers');
}
But it returns an empty array:
LocalCollection.Cursor {collection: LocalCollection, sorter: null, _selectorId: undefined, matcher: Minimongo.Matcher, skip: undefined…}
How do I return an array of all users?