trigger note revisioning saving also on title changes #2426

This commit is contained in:
zadam
2021-12-08 21:04:22 +01:00
parent 263b7a84bb
commit a810c08c02
3 changed files with 11 additions and 6 deletions

View File

@@ -203,6 +203,10 @@ function changeTitle(req) {
const noteTitleChanged = note.title !== title;
if (noteTitleChanged) {
noteService.saveNoteRevision(note);
}
note.title = title;
note.save();