Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix sync API for note tree
azivnerf499872809ca
diff --git a/routes/api/sync.js b/routes/api/sync.jsindex d6e35df87f..c5494ce729 100644--- a/routes/api/sync.js+++ b/routes/api/sync.js@@ -35,10 +35,10 @@ router.get('/notes/:noteId', auth.checkApiAuth, async (req, res, next) => {});});-router.get('/notes_tree/:noteId', auth.checkApiAuth, async (req, res, next) => {- const noteId = req.params.noteId;+router.get('/notes_tree/:noteTreeId', auth.checkApiAuth, async (req, res, next) => {+ const noteTreeId = req.params.noteTreeId;- res.send(await sql.getSingleResult("SELECT * FROM notes_tree WHERE note_id = ?", [noteId]));+ res.send(await sql.getSingleResult("SELECT * FROM notes_tree WHERE note_tree_id = ?", [noteTreeId]));});router.get('/notes_history/:noteHistoryId', auth.checkApiAuth, async (req, res, next) => {