Process also pending emailNotifications
This commit is contained in:
parent
3d059287ae
commit
53a7c3be21
1 changed files with 4 additions and 1 deletions
|
|
@ -67,7 +67,10 @@ Meteor.startup(() => {
|
||||||
return sched;
|
return sched;
|
||||||
},
|
},
|
||||||
job: () => {
|
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);
|
processNotif(notif);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue