mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
note history snapshots now have date from and date to
This commit is contained in:
@@ -8,7 +8,7 @@ const auth = require('../../services/auth');
|
||||
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 desc", [noteId]);
|
||||
const history = await sql.getResults("select * from notes_history where note_id = ? order by date_modified_to desc", [noteId]);
|
||||
|
||||
res.send(history);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user