mirror of
https://github.com/wekan/wekan.git
synced 2026-02-07 17:04:22 +01:00
update broke ability to mute notifications
This commit is contained in:
parent
5c588b2424
commit
41330b15dc
4 changed files with 15 additions and 15 deletions
|
|
@ -341,4 +341,12 @@ Migrations.add('remove-tag', () => {
|
|||
'profile.tags':1,
|
||||
},
|
||||
}, noValidateMulti);
|
||||
});
|
||||
|
||||
Migrations.add('remove-customFields-references-broken', () => {
|
||||
Cards.update(
|
||||
{'customFields.$value': null},
|
||||
{$pull: {customFields: {value: null}}},
|
||||
noValidateMulti,
|
||||
);
|
||||
});
|
||||
|
|
@ -19,20 +19,13 @@ Notifications = {
|
|||
delete notifyServices[serviceName];
|
||||
},
|
||||
|
||||
// filter recipients according to user settings for notification
|
||||
getUsers: (participants, watchers) => {
|
||||
const userMap = {};
|
||||
participants.forEach((userId) => {
|
||||
if (userMap[userId]) return;
|
||||
const user = Users.findOne(userId);
|
||||
userMap[userId] = user;
|
||||
});
|
||||
getUsers: (watchers) => {
|
||||
const users = [];
|
||||
watchers.forEach((userId) => {
|
||||
if (userMap[userId]) return;
|
||||
const user = Users.findOne(userId);
|
||||
userMap[userId] = user;
|
||||
if (user) users.push(user);
|
||||
});
|
||||
return _.map(userMap, (v) => v);
|
||||
return users;
|
||||
},
|
||||
|
||||
notify: (user, title, description, params) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue