Skip to content

Commit 816549f

Browse files
author
vikasrohit
authored
Merge pull request #173 from topcoder-platform/cf20
CF20 - part 2
2 parents d49be56 + 905abe8 commit 816549f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/NotificationService.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ function* listNotifications(query, userId) {
205205
if (_.keys(notificationSettings).length > 0) {
206206
// only filter out notifications types which were explicitly set to 'no' - so we return notification by default
207207
const notifications = _.keys(notificationSettings).filter((notificationType) =>
208-
!notificationSettings[notificationType] &&
209-
!notificationSettings[notificationType].web &&
208+
notificationSettings[notificationType] &&
209+
notificationSettings[notificationType].web &&
210210
notificationSettings[notificationType].web.enabled === 'no'
211211
);
212212
filter.where.type = Object.assign(filter.where.type || {}, { $notIn: notifications });

0 commit comments

Comments
 (0)