From ece0d13c055eeae290bb27093d44981d3f30a673 Mon Sep 17 00:00:00 2001 From: simov Date: Wed, 4 Jun 2014 10:43:27 +0300 Subject: [PATCH] Database record updates are disabled if debug flag is set --- lib/db/update.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/db/update.js b/lib/db/update.js index e260be7..f455f45 100644 --- a/lib/db/update.js +++ b/lib/db/update.js @@ -102,6 +102,7 @@ var tbl = { }, execute: function (action, args, str, record, settings, cb) { args.log && console.log('tbl'.green, str); + if (args.debug) return cb(); // insert or update if (action != 'remove') {