mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
don't alert in case of updated note in current editor
This commit is contained in:
@@ -253,7 +253,7 @@ function logSyncError(message, e, syncLog) {
|
||||
async function updateNote(entity, links, sourceId, syncLog) {
|
||||
const origNote = await sql.getSingleResult("select * from notes where note_id = ?", [entity.note_id]);
|
||||
|
||||
if (origNote === null || origNote.date_modified <= entity.date_modified) {
|
||||
if (!origNote || origNote.date_modified <= entity.date_modified) {
|
||||
await sql.doInTransaction(async () => {
|
||||
await sql.replace("notes", entity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user