refs #4797 added fields
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2023-05-15 14:34:32 +02:00
parent f0cd01fe7d
commit 2c254cbc08
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ module.exports = Self => {
}, myOptions);
const availableNotifications = await models.NotificationAcl.find({
fields: ['notificationFk', 'roleFk'],
include: {relation: 'notification'},
where: {
roleFk: {
@ -44,6 +45,7 @@ module.exports = Self => {
}, myOptions);
const activeNotifications = await models.NotificationSubscription.find({
fields: ['id', 'notificationFk'],
include: {relation: 'notification'},
where: {userFk: id}
}, myOptions);