Procházet zdrojové kódy

Commit 11-3: Only sync notifications that are relevant to the user.

Frederic G. MARAND před 9 roky
rodič
revize
a3379b13dc
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      server/publications.js

+ 4 - 1
server/publications.js

@@ -10,5 +10,8 @@ Meteor.publish('comments', function(postId) {
 });
 
 Meteor.publish('notifications', function () {
-  return Notifications.find();
+  return Notifications.find({
+    userId: this.userId,
+    read: false
+  });
 });