mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-23 18:53:36 +02:00
clean up
This commit is contained in:
parent
38be57c1f6
commit
43a7358147
@ -284,7 +284,6 @@ class Database {
|
||||
}
|
||||
|
||||
logQuery(sql, params = null) {
|
||||
console.info(sql, params);
|
||||
if (!this.debugMode()) return;
|
||||
|
||||
if (params !== null) {
|
||||
|
@ -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] },
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user