1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-23 18:53:36 +02:00
This commit is contained in:
Laurent Cozic 2017-06-25 00:20:35 +01:00
parent 38be57c1f6
commit 43a7358147
2 changed files with 1 additions and 3 deletions

View File

@ -284,7 +284,6 @@ class Database {
}
logQuery(sql, params = null) {
console.info(sql, params);
if (!this.debugMode()) return;
if (params !== null) {

View File

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