Skip to content

Commit ab58cd4

Browse files
committed
Use encoded noteId in updateHistory call
Signed-off-by: Yukai Huang <[email protected]>
1 parent bef0701 commit ab58cd4

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)