We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091c77b commit e7a4996Copy full SHA for e7a4996
lib/note/index.js
@@ -289,6 +289,7 @@ const updateNote = async (req, res) => {
289
const now = Date.now()
290
const content = req.body.content
291
const updated = await note.update({
292
+ title: Note.parseNoteTitle(content),
293
content: content,
294
lastchangeAt: now,
295
authorship: [
@@ -307,6 +308,8 @@ const updateNote = async (req, res) => {
307
308
return errorInternalError(req, res)
309
}
310
311
+ updateHistory(req.user.id, note)
312
+
313
Revision.saveNoteRevision(note, (err, revision) => {
314
if (err) {
315
logger.error(err)
0 commit comments