Process also pending emailNotifications

This commit is contained in:
vjrj 2018-09-11 15:27:10 +02:00
parent 3d059287ae
commit 53a7c3be21

View file

@ -67,7 +67,10 @@ Meteor.startup(() => {
return sched;
},
job: () => {
Notifications.find({ nofitied: null }).forEach((notif) => {
Notifications.find({ nofitied: null, type: 'mobile' }).forEach((notif) => {
processNotif(notif);
});
Notifications.find({ emailNofitied: null, type: 'web' }).forEach((notif) => {
processNotif(notif);
});
}