mirror of
https://github.com/zadam/trilium.git
synced 2025-01-27 17:40:44 +08:00
fix sync API for note tree
This commit is contained in:
parent
c9ccf797da
commit
f499872809
1 changed files with 3 additions and 3 deletions
|
@ -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) => {
|
router.get('/notes_tree/:noteTreeId', auth.checkApiAuth, async (req, res, next) => {
|
||||||
const noteId = req.params.noteId;
|
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) => {
|
router.get('/notes_history/:noteHistoryId', auth.checkApiAuth, async (req, res, next) => {
|
||||||
|
|
Loading…
Reference in a new issue