mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
smaller refactorings continued
This commit is contained in:
@@ -95,9 +95,7 @@ async function getLastSyncedPull() {
|
||||
}
|
||||
|
||||
async function setLastSyncedPull(syncId) {
|
||||
await sql.doInTransaction(async () => {
|
||||
await options.setOption('last_synced_pull', syncId);
|
||||
});
|
||||
await options.setOption('last_synced_pull', syncId);
|
||||
}
|
||||
|
||||
async function pullSync(syncContext) {
|
||||
@@ -168,9 +166,7 @@ async function getLastSyncedPush() {
|
||||
}
|
||||
|
||||
async function setLastSyncedPush(lastSyncedPush) {
|
||||
await sql.doInTransaction(async () => {
|
||||
await options.setOption('last_synced_push', lastSyncedPush);
|
||||
});
|
||||
await options.setOption('last_synced_push', lastSyncedPush);
|
||||
}
|
||||
|
||||
async function pushSync(syncContext) {
|
||||
|
||||
Reference in New Issue
Block a user