Permalink
Browse files

Only sync notifications that are relevant to the user.

chapter11-3
  • Loading branch information...
tmeasday committed Apr 8, 2013
1 parent 6b09046 commit 156b40ea6ce20646cd7c3dadcb79324a7336dc24
Showing with 2 additions and 2 deletions.
  1. +2 −2 server/publications.js
View
@@ -8,5 +8,5 @@ Meteor.publish('comments', function(postId) {
});
Meteor.publish('notifications', function() {
return Notifications.find();
})
return Notifications.find({userId: this.userId, read: false});
});

0 comments on commit 156b40e

Please sign in to comment.