mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
shortcuts improvements
This commit is contained in:
@@ -20,8 +20,12 @@ function updateNoteAttribute(req) {
|
||||
if (body.attributeId) {
|
||||
attribute = becca.getAttribute(body.attributeId);
|
||||
|
||||
if (!attribute) {
|
||||
return [404, `Attribute '${body.attributeId}' does not exist.`];
|
||||
}
|
||||
|
||||
if (attribute.noteId !== noteId) {
|
||||
return [400, `Attribute ${body.attributeId} is not owned by ${noteId}`];
|
||||
return [400, `Attribute '${body.attributeId}' is not owned by ${noteId}`];
|
||||
}
|
||||
|
||||
if (body.type !== attribute.type
|
||||
|
||||
Reference in New Issue
Block a user