also de-encryption of note history plus bug fixes

This commit is contained in:
azivner
2017-11-02 23:55:22 -04:00
parent 471f7c669d
commit ac0e5ada6e
2 changed files with 19 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ router.get('/:noteId', auth.checkApiAuth, async (req, res, next) => {
res.send(history);
});
router.put('/', auth.checkApiAuth, async (req, res, next) => {
router.put('', auth.checkApiAuth, async (req, res, next) => {
await sql.doInTransaction(async () => {
await sql.replace("notes_history", req.body);