mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Prettier & eslint project style update
This commit is contained in:
parent
a0a482aa8e
commit
3eb4d2c341
116 changed files with 6216 additions and 5240 deletions
|
|
@ -14,14 +14,14 @@ Notifications = {
|
|||
notifyServices[serviceName] = callback;
|
||||
},
|
||||
|
||||
unsubscribe: (serviceName) => {
|
||||
unsubscribe: serviceName => {
|
||||
if (typeof notifyServices[serviceName] === 'function')
|
||||
delete notifyServices[serviceName];
|
||||
},
|
||||
|
||||
getUsers: (watchers) => {
|
||||
getUsers: watchers => {
|
||||
const users = [];
|
||||
watchers.forEach((userId) => {
|
||||
watchers.forEach(userId => {
|
||||
const user = Users.findOne(userId);
|
||||
if (user) users.push(user);
|
||||
});
|
||||
|
|
@ -29,9 +29,10 @@ Notifications = {
|
|||
},
|
||||
|
||||
notify: (user, title, description, params) => {
|
||||
for(const k in notifyServices) {
|
||||
for (const k in notifyServices) {
|
||||
const notifyImpl = notifyServices[k];
|
||||
if (notifyImpl && typeof notifyImpl === 'function') notifyImpl(user, title, description, params);
|
||||
if (notifyImpl && typeof notifyImpl === 'function')
|
||||
notifyImpl(user, title, description, params);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue