From d59e2b5ea9e835f216ceed307c989a954c8a0986 Mon Sep 17 00:00:00 2001 From: alseambusher Date: Thu, 1 Sep 2016 11:10:11 -0700 Subject: [PATCH] cleanup --- crontab.js | 2 +- restore.js | 5 ++--- routes.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crontab.js b/crontab.js index cbc636d..253c760 100644 --- a/crontab.js +++ b/crontab.js @@ -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(); diff --git a/restore.js b/restore.js index 637fe41..859076c 100644 --- a/restore.js +++ b/restore.js @@ -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); -} - +}; diff --git a/routes.js b/routes.js index 15a629c..191d26c 100644 --- a/routes.js +++ b/routes.js @@ -13,4 +13,4 @@ exports.routes = { "import": "/import", // this is import from database "import_crontab": "/import_crontab", // this is from existing crontab "logger": "/logger", -} +};