mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Update create-notification.ts
This commit is contained in:
parent
58e595a009
commit
894bac37eb
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue