- Import emails from a list to a DB
- Create Template Emails - Options Email
This commit is contained in:
@@ -30,7 +30,7 @@ router.post('/', authenticate, (req, res) => {
|
||||
|
||||
// Modify:
|
||||
return MyEvent.findOne({ id })
|
||||
.then(trovato => {
|
||||
.then((trovato) => {
|
||||
// console.log('trovato', trovato);
|
||||
if (trovato) {
|
||||
return myevent.findOneAndUpdate({ id }, { $set: fieldtochange }, {
|
||||
@@ -40,6 +40,8 @@ router.post('/', authenticate, (req, res) => {
|
||||
// tools.mylog('myevent:', myevent);
|
||||
// tools.mylog('already exist');
|
||||
sendNotif(res, myrec.idapp, req.user, recmyevent);
|
||||
return res
|
||||
}).then((res) => {
|
||||
res.send({ code: server_constants.RIS_CODE_OK, msg: '', id: recmyevent._id });
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user