From ab58cd45b44e5a214522902b05b7c45bf0661c52 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Thu, 13 Aug 2020 16:17:44 +0800 Subject: [PATCH] Use encoded noteId in updateHistory call Signed-off-by: Yukai Huang --- lib/note/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/note/index.js b/lib/note/index.js index 7f215149..41d8cf58 100644 --- a/lib/note/index.js +++ b/lib/note/index.js @@ -309,7 +309,7 @@ const updateNote = async (req, res) => { } if (req.isAuthenticated()) { - updateHistory(req.user.id, note.id, content) + updateHistory(req.user.id, noteId, content) } Revision.saveNoteRevision(note, (err, revision) => {