This commit is contained in:
parent
f0cd01fe7d
commit
2c254cbc08
|
@ -35,6 +35,7 @@ module.exports = Self => {
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
const availableNotifications = await models.NotificationAcl.find({
|
const availableNotifications = await models.NotificationAcl.find({
|
||||||
|
fields: ['notificationFk', 'roleFk'],
|
||||||
include: {relation: 'notification'},
|
include: {relation: 'notification'},
|
||||||
where: {
|
where: {
|
||||||
roleFk: {
|
roleFk: {
|
||||||
|
@ -44,6 +45,7 @@ module.exports = Self => {
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
const activeNotifications = await models.NotificationSubscription.find({
|
const activeNotifications = await models.NotificationSubscription.find({
|
||||||
|
fields: ['id', 'notificationFk'],
|
||||||
include: {relation: 'notification'},
|
include: {relation: 'notification'},
|
||||||
where: {userFk: id}
|
where: {userFk: id}
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
Loading…
Reference in New Issue