Skip to content

Instantly share code, notes, and snippets.

@brlafreniere
Created April 3, 2015 06:14
Show Gist options
  • Save brlafreniere/6f56c00bd8d2270ddd83 to your computer and use it in GitHub Desktop.
Save brlafreniere/6f56c00bd8d2270ddd83 to your computer and use it in GitHub Desktop.
# in this code snippet I'm trying to get all messages that were created less than a day ago
# it doesn't seem to be working.
Meteor.publish "messageData", () ->
return Messages.find {}, {createdAt: {$lte: moment().subtract(1, 'hours')}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment