note history snapshots now have date from and date to

This commit is contained in:
azivner
2017-10-24 19:36:37 -04:00
parent 11bbf9e633
commit d1981eb6c3
6 changed files with 12 additions and 6 deletions

View File

@@ -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);
});