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}
|
where: {userFk: id}
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
for (subscription of activeNotifications)
|
for (subscription of activeNotifications) {
|
||||||
notifications.get(subscription.notificationFk).active = true;
|
const notification = notifications.get(subscription.notificationFk);
|
||||||
|
if (notification) {
|
||||||
|
notification.active = true;
|
||||||
|
notification.id = subscription.id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return [...notifications.values()];
|
return [...notifications.values()];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue