- Import emails from a list to a DB
- Create Template Emails - Options Email
This commit is contained in:
@@ -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 });
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user