mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
sync changes for note_tree_id and fixed recent notes
This commit is contained in:
@@ -50,12 +50,12 @@ router.get('/options/:optName', auth.checkApiAuth, async (req, res, next) => {
|
||||
}
|
||||
});
|
||||
|
||||
router.get('/notes_reordering/:noteParentId', auth.checkApiAuth, async (req, res, next) => {
|
||||
const noteParentId = req.params.noteParentId;
|
||||
router.get('/notes_reordering/:noteTreeParentId', auth.checkApiAuth, async (req, res, next) => {
|
||||
const noteTreeParentId = req.params.noteTreeParentId;
|
||||
|
||||
res.send({
|
||||
note_pid: noteParentId,
|
||||
ordering: await sql.getMap("SELECT note_id, note_pos FROM notes_tree WHERE note_pid = ?", [noteParentId])
|
||||
note_pid: noteTreeParentId,
|
||||
ordering: await sql.getMap("SELECT note_tree_id, note_pos FROM notes_tree WHERE note_pid = ?", [noteTreeParentId])
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user