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] }, );