This commit is contained in:
parent
f0cd01fe7d
commit
2c254cbc08
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue