Merge pull request #1570 from hackmdio/bugfix/update-history-usage

Use encoded noteId when calling updateHistory
This commit is contained in:
Yukai Huang 2021-05-11 16:27:50 +08:00 committed by GitHub
commit 0c3171b17d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ const updateNote = async (req, res) => {
} }
if (req.isAuthenticated()) { if (req.isAuthenticated()) {
updateHistory(req.user.id, note.id, content) updateHistory(req.user.id, noteId, content)
} }
Revision.saveNoteRevision(note, (err, revision) => { Revision.saveNoteRevision(note, (err, revision) => {