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 78bb0ab commit 2950c5eCopy full SHA for 2950c5e
apps/server/src/etapi/notes.ts
@@ -92,6 +92,7 @@ function register(router: Router) {
92
throw new eu.EtapiError(400, "NOTE_IS_PROTECTED", `Note '${req.params.noteId}' is protected and cannot be modified through ETAPI.`);
93
}
94
95
+ noteService.saveRevisionIfNeeded(note);
96
eu.validateAndPatch(note, req.body, ALLOWED_PROPERTIES_FOR_PATCH);
97
note.save();
98
@@ -136,6 +137,7 @@ function register(router: Router) {
136
137
138
139
140
141
note.setContent(req.body);
142
143
noteService.asyncPostProcessContent(note, req.body);
0 commit comments