Skip to content

Commit

Permalink
Merge pull request #1570 from hackmdio/bugfix/update-history-usage
Browse files Browse the repository at this point in the history
Use encoded noteId when calling updateHistory
  • Loading branch information
Yukaii authored May 11, 2021
2 parents bec877c + ab58cd4 commit 0c3171b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/note/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0c3171b

Please sign in to comment.