mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
fix error from notifications subscriptions
This commit is contained in:
parent
f4d0791c6c
commit
8ea86ae0b9
1 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,8 @@ Meteor.publish('notificationUsers', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
function activities() {
|
function activities() {
|
||||||
|
const notifications = Meteor.user().profile.notifications || [];
|
||||||
return Activities.find({
|
return Activities.find({
|
||||||
_id: { $in: Meteor.user().profile.notifications.map(v => v.activity) },
|
_id: { $in: notifications.map(v => v.activity) },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue