mirror of
https://github.com/zadam/trilium.git
synced 2025-03-04 02:53:30 +08:00
fixed setting last_synced_pull
This commit is contained in:
parent
266727a21b
commit
9cef647811
1 changed files with 3 additions and 2 deletions
|
@ -49,7 +49,6 @@ async function pullSync() {
|
|||
json: true
|
||||
});
|
||||
|
||||
console.log(noteId);
|
||||
|
||||
await sql.insert("notes", note.detail, true);
|
||||
|
||||
|
@ -64,9 +63,11 @@ async function pullSync() {
|
|||
|
||||
await sql.insert("notes_history", history);
|
||||
}
|
||||
|
||||
log.info("Syncing note" + noteId);
|
||||
}
|
||||
|
||||
await sql.setOption('last_synced_pull', syncTimestamp);
|
||||
await sql.setOption('last_synced_pull', resp.syncTimestamp);
|
||||
|
||||
await sql.commit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue