Created
April 3, 2015 04:27
-
-
Save brlafreniere/c16877ec3ac40ee6ffc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Meteor.isServer | |
Meteor.publish "userData", () -> | |
if this.userId | |
return Meteor.users.find {_id: this.userId}, {fields: {'status.online': 1}} | |
else | |
this.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment