From 43a73581477b0902868c4879ccbc0abc0e9e12f6 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 25 Jun 2017 00:20:35 +0100 Subject: [PATCH] clean up --- lib/database.js | 1 - lib/models/folder.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/database.js b/lib/database.js index b133d4ffc..7e06912b3 100644 --- a/lib/database.js +++ b/lib/database.js @@ -284,7 +284,6 @@ class Database { } logQuery(sql, params = null) { - console.info(sql, params); if (!this.debugMode()) return; if (params !== null) { diff --git a/lib/models/folder.js b/lib/models/folder.js index ff73f840a..b5727492d 100644 --- a/lib/models/folder.js +++ b/lib/models/folder.js @@ -111,8 +111,7 @@ class Folder extends BaseItem { delete o.is_default; Log.warn('is_default property cannot be set to 0 directly. Instead, set the folder that should become the default to 1.'); } else { - if (!options) options = {}; - if (!options.transactionNextQueries) options.transactionNextQueries = []; + options = this.modOptions(options); options.transactionNextQueries.push( { sql: 'UPDATE folders SET is_default = 0 WHERE id != ?', params: [o.id] }, );