mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
change in naming of SQL methods
added assert methods to note tree
This commit is contained in:
@@ -10,7 +10,7 @@ const sync_table = require('../../services/sync_table');
|
||||
|
||||
router.get('/:noteId', auth.checkApiAuth, async (req, res, next) => {
|
||||
const noteId = req.params.noteId;
|
||||
const history = await sql.getResults("SELECT * FROM notes_history WHERE note_id = ? order by date_modified_to desc", [noteId]);
|
||||
const history = await sql.getAll("SELECT * FROM notes_history WHERE note_id = ? order by date_modified_to desc", [noteId]);
|
||||
|
||||
const dataKey = protected_session.getDataKey(req);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user