- Import emails from a list to a DB

- Create Template Emails
- Options Email
This commit is contained in:
Paolo Arena
2019-12-04 02:03:44 +01:00
parent f7fa0c4909
commit 6adeb32d46
19 changed files with 1061 additions and 211 deletions

View File

@@ -68,11 +68,11 @@ router.post('/', authenticate, (req, res) => {
myrecmsg._id = idobj;
return SendMsg.findById(idobj)
.then((recmsg) => {
.then(async (recmsg) => {
// Add this field because I don't want to add into the database
recmsg.source.infoevent = body.source.infoevent;
return sendNotif(res, body.idapp, req.user, recmsg).then((ris) => {
return await sendNotif(res, body.idapp, req.user, recmsg).then((ris) => {
return res.send({ code: server_constants.RIS_CODE_OK, msg: '', id: recmsg._id });
})
});