From 70f717b3506f5ff1719240ed55dd7b95714e0640 Mon Sep 17 00:00:00 2001 From: azivner Date: Tue, 7 Nov 2017 20:36:17 -0500 Subject: [PATCH] note expansion is not synced anymore so there's less possibility of conflict --- routes/api/notes_move.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/routes/api/notes_move.js b/routes/api/notes_move.js index 75796b26d..453b46cb7 100644 --- a/routes/api/notes_move.js +++ b/routes/api/notes_move.js @@ -84,13 +84,9 @@ router.put('/:noteId/moveAfter/:afterNoteId', async (req, res, next) => { router.put('/:noteId/expanded/:expanded', async (req, res, next) => { const noteId = req.params.noteId; const expanded = req.params.expanded; - const now = utils.nowTimestamp(); await sql.doInTransaction(async () => { - await sql.execute("update notes_tree set is_expanded = ?, date_modified = ? where note_id = ?", [expanded, now, noteId]); - - await sql.addNoteTreeSync(noteId); - await sql.addAudit(audit_category.CHANGE_EXPANDED, utils.browserId(req), noteId, null, expanded); + await sql.execute("update notes_tree set is_expanded = ? where note_id = ?", [expanded, noteId]); }); res.send({});