modif notification await
This commit is contained in:
parent
609a03e255
commit
5088f60108
@ -83,7 +83,7 @@ router.post(
|
||||
);*/
|
||||
let sendret;
|
||||
if (req.body.emailsto && req.body.emailsto.length > 0) {
|
||||
const sendcampain = Notifications.manageemail(
|
||||
const sendcampain = await Notifications.manageemail(
|
||||
req.body.emailsto,
|
||||
req.params.template,
|
||||
req.params.tribe,
|
||||
@ -104,7 +104,7 @@ router.post(
|
||||
const newk= (k=="Cc")?"cc":k;
|
||||
campain.emailsto[0][newk]=req.body[k]
|
||||
})
|
||||
sendret = Notifications.manageemail(
|
||||
sendret = await Notifications.manageemail(
|
||||
campain,
|
||||
req.params.template,
|
||||
req.params.tribe,
|
||||
|
Loading…
x
Reference in New Issue
Block a user