Disabling web push since is breaking the server

This commit is contained in:
Adolfo Reyna
2025-02-06 08:51:26 -05:00
parent c2169c9604
commit 0d06e2a446

View File

@@ -438,7 +438,7 @@ const Notifications = {
} }
const notifBody = `${senderProfile.profile.firstName} post in your profile`; const notifBody = `${senderProfile.profile.firstName} post in your profile`;
sendPushNotification(profile.token, notifBody, {}); sendPushNotification(profile.token, notifBody, {});
sendWebNotification(profile.webSubscription, notifBody, message); // sendWebNotification(profile.webSubscription, notifBody, message);
DB.addNotification(toProfileId, notifBody, post._id, null, senderProfile._id); DB.addNotification(toProfileId, notifBody, post._id, null, senderProfile._id);
return youGotANewPostTemplate(profile, user.username, senderProfile, message); return youGotANewPostTemplate(profile, user.username, senderProfile, message);
}, },
@@ -486,7 +486,7 @@ const Notifications = {
yourGroupRequestAcceptedTemplate(groupProfile, user.username, requesterProfile); yourGroupRequestAcceptedTemplate(groupProfile, user.username, requesterProfile);
const notifBody = `You were added to the group ${groupProfile.profile.firstName} ${groupProfile.profile.lastName}`; const notifBody = `You were added to the group ${groupProfile.profile.firstName} ${groupProfile.profile.lastName}`;
sendPushNotification(requesterProfile.token, notifBody, {}); sendPushNotification(requesterProfile.token, notifBody, {});
sendWebNotification(requesterProfile.webSubscription, notifBody); // sendWebNotification(requesterProfile.webSubscription, notifBody);
DB.addNotification(requesterProfile, notifBody, null, null, groupProfile._id); DB.addNotification(requesterProfile, notifBody, null, null, groupProfile._id);
}, },