Skip to content

Commit ab0ac83

Browse files
committed
Fix updateHistory parameter
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
1 parent 4792908 commit ab0ac83

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
@@ -308,7 +308,7 @@ const updateNote = async (req, res) => {
308308
return errorInternalError(req, res)
309309
}
310310

311-
updateHistory(req.user.id, note)
311+
updateHistory(req.user.id, note.id, content)
312312

313313
Revision.saveNoteRevision(note, (err, revision) => {
314314
if (err) {

0 commit comments

Comments
 (0)