Skip to content

Commit 0c3171b

Browse files
authored
Merge pull request #1570 from hackmdio/bugfix/update-history-usage
Use encoded noteId when calling updateHistory
2 parents bec877c + ab58cd4 commit 0c3171b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/note/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const updateNote = async (req, res) => {
309309
}
310310

311311
if (req.isAuthenticated()) {
312-
updateHistory(req.user.id, note.id, content)
312+
updateHistory(req.user.id, noteId, content)
313313
}
314314

315315
Revision.saveNoteRevision(note, (err, revision) => {

0 commit comments

Comments
 (0)