Use encoded noteId in updateHistory call

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
Yukai Huang 2020-08-13 16:17:44 +08:00
parent bef0701c8f
commit ab58cd45b4
1 changed files with 1 additions and 1 deletions

View File

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