From 5864b52a813c5fbb38bbe5ef5ad3648e313a5be1 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 29 Aug 2020 03:26:44 +0900 Subject: [PATCH] Update create-notification.ts --- src/services/create-notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/create-notification.ts b/src/services/create-notification.ts index b2bcaaa83..7471c349e 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({