mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
added getTargetNote to froca's attribute, fixes #2981
This commit is contained in:
@@ -477,6 +477,12 @@ class Note extends AbstractEntity {
|
||||
return this.inheritableAttributeCache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param type
|
||||
* @param name
|
||||
* @param [value]
|
||||
* @returns {boolean}
|
||||
*/
|
||||
hasAttribute(type, name, value) {
|
||||
return !!this.getAttributes().find(attr =>
|
||||
attr.type === type
|
||||
@@ -1277,7 +1283,7 @@ class Note extends AbstractEntity {
|
||||
? this.dateModified
|
||||
: contentMetadata.dateModified,
|
||||
dateCreated: dateUtils.localNowDateTime()
|
||||
}).save();
|
||||
}, true).save();
|
||||
|
||||
noteRevision.setContent(content);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user