From f71d48a8be4e7489e19e50143e914b3f79a44066 Mon Sep 17 00:00:00 2001 From: alse Date: Tue, 9 Jun 2020 21:18:37 +0530 Subject: [PATCH] Enable/Disable sets saved to false --- crontab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crontab.js b/crontab.js index 49b5e78..1a39d4a 100644 --- a/crontab.js +++ b/crontab.js @@ -56,7 +56,7 @@ exports.update = function(data){ }; exports.status = function(_id, stopped){ - db.update({_id: _id},{$set: {stopped: stopped}}); + db.update({_id: _id},{$set: {stopped: stopped, saved: false}}); }; exports.remove = function(_id){