Skip to content
Snippets Groups Projects
Unverified Commit 5864b52a authored by tamaina's avatar tamaina Committed by GitHub
Browse files

Update create-notification.ts

parent 493d32b3
No related branches found
No related tags found
No related merge requests found
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment