Database record updates are disabled if debug flag is set

This commit is contained in:
simov
2014-06-04 10:43:27 +03:00
parent 1e90041807
commit ece0d13c05
+1
View File
@@ -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') {