modif notification await

This commit is contained in:
philc 2025-03-11 07:39:46 +01:00
parent 609a03e255
commit 5088f60108

View File

@ -83,7 +83,7 @@ router.post(
);*/ );*/
let sendret; let sendret;
if (req.body.emailsto && req.body.emailsto.length > 0) { if (req.body.emailsto && req.body.emailsto.length > 0) {
const sendcampain = Notifications.manageemail( const sendcampain = await Notifications.manageemail(
req.body.emailsto, req.body.emailsto,
req.params.template, req.params.template,
req.params.tribe, req.params.tribe,
@ -104,7 +104,7 @@ router.post(
const newk= (k=="Cc")?"cc":k; const newk= (k=="Cc")?"cc":k;
campain.emailsto[0][newk]=req.body[k] campain.emailsto[0][newk]=req.body[k]
}) })
sendret = Notifications.manageemail( sendret = await Notifications.manageemail(
campain, campain,
req.params.template, req.params.template,
req.params.tribe, req.params.tribe,