converting note properties to methods

This commit is contained in:
zadam
2021-05-18 20:56:49 +02:00
parent 2451596e8c
commit a093508fbe
8 changed files with 18 additions and 13 deletions

View File

@@ -47,10 +47,11 @@ function updateNoteAttribute(req) {
return {};
}
attribute = new Attribute();
attribute.noteId = noteId;
attribute.name = body.name;
attribute.type = body.type;
attribute = new Attribute({
noteId: noteId,
name: body.name,
type: body.type
});
}
if (attribute.type === 'label' || body.value.trim()) {