- risolto problema cors ?!?
- notifiche transazioni pendenti OK
This commit is contained in:
@@ -985,10 +985,11 @@ module.exports = {
|
||||
checkifSentNewsletter: async function (idapp) {
|
||||
// Check if is the time to send the Newsletter
|
||||
|
||||
return await Newstosent.findNewsletter_To_Send(idapp).then((rec) => {
|
||||
if (rec)
|
||||
this.sendNewsletter(rec, idapp);
|
||||
});
|
||||
return await Newstosent.findNewsletter_To_Send(idapp)
|
||||
.then((rec) => {
|
||||
if (rec)
|
||||
this.sendNewsletter(rec, idapp);
|
||||
});
|
||||
}
|
||||
,
|
||||
|
||||
@@ -1009,12 +1010,13 @@ module.exports = {
|
||||
myjobnews.starting_job = true;
|
||||
myjobnews.datestartJob = new Date();
|
||||
|
||||
myjobnews.save().then((ris) => {
|
||||
myjobnews.save()
|
||||
.then(async (ris) => {
|
||||
|
||||
this.sendEmail_Newsletter_Events('it', idapp, rec._id);
|
||||
}).catch((e) => {
|
||||
console.error(e.message);
|
||||
});
|
||||
await this.sendEmail_Newsletter_Events('it', idapp, rec._id);
|
||||
}).catch((e) => {
|
||||
console.error(e.message);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user