Skip to content

Commit 298db32

Browse files
authored
Merge pull request #1804 from bbtfr/fix-note-id
2 parents 75d830d + 20e71a3 commit 298db32

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, noteId, content)
312+
updateHistory(req.user.id, Note.encodeNoteId(noteId), content)
313313
}
314314

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

0 commit comments

Comments
 (0)