Fix updateHistory parameter

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
Yukai Huang 2020-08-12 18:10:39 +08:00
parent 4792908169
commit ab0ac83582
No known key found for this signature in database
GPG Key ID: A76CBD50B22052C0
1 changed files with 1 additions and 1 deletions

View File

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