refs #4797 added id to notification in activeNotifications
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f9e7963e74
commit
9cb756544e
|
@ -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()];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue