store mail options in db

This commit is contained in:
alseambusher
2016-12-14 09:48:15 +05:30
parent b84a04adb0
commit 3d56cb1db0
5 changed files with 24 additions and 9 deletions

2
app.js
View File

@@ -57,7 +57,7 @@ If it is a new job @param _id is set to -1
app.post(routes.save, function(req, res) {
// new job
if(req.body._id == -1){
crontab.create_new(req.body.name, req.body.command, req.body.schedule, req.body.logging);
crontab.create_new(req.body.name, req.body.command, req.body.schedule, req.body.logging, req.body.mailing);
}
// edit job
else{