mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fixed setting last_synced_pull
This commit is contained in:
parent
266727a21b
commit
9cef647811
@ -49,7 +49,6 @@ async function pullSync() {
|
|||||||
json: true
|
json: true
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(noteId);
|
|
||||||
|
|
||||||
await sql.insert("notes", note.detail, true);
|
await sql.insert("notes", note.detail, true);
|
||||||
|
|
||||||
@ -64,9 +63,11 @@ async function pullSync() {
|
|||||||
|
|
||||||
await sql.insert("notes_history", history);
|
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();
|
await sql.commit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user