Disabling web push since is breaking the server
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user