mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
fix putting new attribute correctly into becca
This commit is contained in:
@@ -91,10 +91,7 @@ function addNoteAttribute(req) {
|
||||
const noteId = req.params.noteId;
|
||||
const body = req.body;
|
||||
|
||||
const attr = new Attribute(body);
|
||||
attr.noteId = noteId;
|
||||
|
||||
attr.save();
|
||||
new Attribute({...body, noteId}).save();
|
||||
}
|
||||
|
||||
function deleteNoteAttribute(req) {
|
||||
|
||||
Reference in New Issue
Block a user