diff --git a/lib/note/index.js b/lib/note/index.js index 7f21514932..41d8cf587d 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) => {