Skip to content

Commit

Permalink
Use encoded noteId in updateHistory call
Browse files Browse the repository at this point in the history
Signed-off-by: Yukai Huang <[email protected]>
  • Loading branch information
Yukaii committed May 11, 2021
1 parent bef0701 commit ab58cd4
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 ab58cd4

Please sign in to comment.