Project managers, board members, auto-update after reconnection, refactoring

This commit is contained in:
Maksim Eltyshev
2021-06-24 01:05:22 +05:00
parent d6cb1f6683
commit b39119ace4
478 changed files with 21226 additions and 19495 deletions

View File

@@ -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,
});
};
},
};