- risolto problema cors ?!?

- notifiche transazioni pendenti OK
This commit is contained in:
Surya Paolo
2024-10-29 02:33:29 +01:00
parent 5dac17d1d1
commit fa1a2a7cdb
15 changed files with 329 additions and 120 deletions

View File

@@ -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);
});
}
}
},