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 <yukaihuangtw@gmail.com>
  • Loading branch information
Yukaii committed Aug 13, 2020
1 parent 24de5a5 commit 0999af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/note/index.js
Expand Up @@ -308,7 +308,7 @@ const updateNote = async (req, res) => {
return errorInternalError(req, res)
}

updateHistory(req.user.id, note.id, content)
updateHistory(req.user.id, noteId, content)

Revision.saveNoteRevision(note, (err, revision) => {
if (err) {
Expand Down

0 comments on commit 0999af2

Please sign in to comment.