refs #4797 added id to notification in activeNotifications
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-05-10 14:13:38 +02:00
parent f9e7963e74
commit 9cb756544e
1 changed files with 7 additions and 2 deletions

View File

@ -58,8 +58,13 @@ module.exports = Self => {
where: {userFk: id}
}, myOptions);
for (subscription of activeNotifications)
notifications.get(subscription.notificationFk).active = true;
for (subscription of activeNotifications) {
const notification = notifications.get(subscription.notificationFk);
if (notification) {
notification.active = true;
notification.id = subscription.id;
}
}
return [...notifications.values()];
};