diff options
-rw-r--r-- | server/publications/notifications.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/publications/notifications.js b/server/publications/notifications.js index 8cb44f95..bc55a37c 100644 --- a/server/publications/notifications.js +++ b/server/publications/notifications.js @@ -94,7 +94,8 @@ Meteor.publish('notificationUsers', function() { }); function activities() { + const notifications = Meteor.user().profile.notifications || []; return Activities.find({ - _id: { $in: Meteor.user().profile.notifications.map(v => v.activity) }, + _id: { $in: notifications.map(v => v.activity) }, }); } |