mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
parent
7956503a46
commit
fe91b5241e
478 changed files with 21226 additions and 19495 deletions
|
@ -10,20 +10,20 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
|
||||
async fn(inputs, exits) {
|
||||
async fn(inputs) {
|
||||
const { currentUser } = this.req;
|
||||
|
||||
const values = _.pick(inputs, ['isRead']);
|
||||
|
||||
const notifications = await sails.helpers.updateNotificationsForUser(
|
||||
const notifications = await sails.helpers.notifications.updateMany(
|
||||
inputs.ids.split(','),
|
||||
currentUser,
|
||||
values,
|
||||
currentUser,
|
||||
this.req,
|
||||
);
|
||||
|
||||
return exits.success({
|
||||
return {
|
||||
items: notifications,
|
||||
});
|
||||
};
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue