diff --git a/src/services/NotificationService.js b/src/services/NotificationService.js index cb92781..daea260 100644 --- a/src/services/NotificationService.js +++ b/src/services/NotificationService.js @@ -205,8 +205,8 @@ function* listNotifications(query, userId) { if (_.keys(notificationSettings).length > 0) { // only filter out notifications types which were explicitly set to 'no' - so we return notification by default const notifications = _.keys(notificationSettings).filter((notificationType) => - !notificationSettings[notificationType] && - !notificationSettings[notificationType].web && + notificationSettings[notificationType] && + notificationSettings[notificationType].web && notificationSettings[notificationType].web.enabled === 'no' ); filter.where.type = Object.assign(filter.where.type || {}, { $notIn: notifications });