Skip to content

Build your personal knowledge base with Trilium Notes

fix for forced note sync

azivner99b163a04234
diff --git a/routes/api/sync.js b/routes/api/sync.js
index bc0c1449dd..0f1bdd89eb 100644
--- a/routes/api/sync.js
+++ b/routes/api/sync.js
@@ -58,7 +58,7 @@ router.post('/force-note-sync/:noteId', auth.checkApiAuth, async (req, res, next
}
for (const noteHistoryId of await sql.getFirstColumn("SELECT note_history_id FROM notes_history WHERE note_id = ?", [noteId])) {
- await sync_table.addNoteTreeSync(noteHistoryId);
+ await sync_table.addNoteHistorySync(noteHistoryId);
}
});