allow sender to save labels

This commit is contained in:
zadam 2020-10-16 19:43:20 +02:00
parent bf9bfe920a
commit b990239219

View File

@ -35,6 +35,12 @@ function saveNote(req) {
mime: 'text/html'
});
if (req.body.labels) {
for (const {name, value} of req.body.labels) {
note.setLabel(name, value);
}
}
return {
noteId: note.noteId,
branchId: branch.branchId