mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
synchronization of transactions using promise so only one can be active
This commit is contained in:
@@ -28,8 +28,8 @@ async function backupNow() {
|
||||
|
||||
log.info("Created backup at " + backupFile);
|
||||
|
||||
await sql.doInTransaction(async db => {
|
||||
await options.setOption(db, 'last_backup_date', now);
|
||||
await sql.doInTransaction(async () => {
|
||||
await options.setOption('last_backup_date', now);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user