cleanup
parent
1c7011f355
commit
d59e2b5ea9
|
@ -16,7 +16,7 @@ crontab = function(name, command, schedule, stopped, logging){
|
|||
data.name = name;
|
||||
data.command = command;
|
||||
data.schedule = schedule;
|
||||
if(stopped != null) {
|
||||
if(stopped !== null) {
|
||||
data.stopped = stopped;
|
||||
}
|
||||
data.timestamp = (new Date()).toString();
|
||||
|
|
|
@ -11,9 +11,8 @@ exports.crontabs = function(db_name, callback){
|
|||
db.find({}).sort({ created: -1 }).exec(function(err, docs){
|
||||
callback(docs);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
exports.delete = function(db_name){
|
||||
fs.unlink(__dirname + '/crontabs/' + db_name);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue