mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
separate DB connection for each transaction (just for the record, will be reverted probably)
This commit is contained in:
@@ -28,7 +28,9 @@ async function backupNow() {
|
||||
|
||||
log.info("Created backup at " + backupFile);
|
||||
|
||||
await options.setOption('last_backup_date', now);
|
||||
await sql.doInTransaction(async db => {
|
||||
await options.setOption(db, 'last_backup_date', now);
|
||||
});
|
||||
}
|
||||
|
||||
async function cleanupOldBackups() {
|
||||
|
||||
Reference in New Issue
Block a user