summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/services/create-notification.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/create-notification.ts b/src/services/create-notification.ts
index b2bcaaa836..7471c349ee 100644
--- a/src/services/create-notification.ts
+++ b/src/services/create-notification.ts
@@ -16,7 +16,7 @@ export async function createNotification(
const profile = await UserProfiles.findOne({ userId: notifieeId });
- const isMuted = !(profile?.includingNotificationTypes === null || profile?.includingNotificationTypes.includes(type));
+ const isMuted = !(profile?.includingNotificationTypes == null || profile?.includingNotificationTypes.includes(type));
// Create notification
const notification = await Notifications.save({