mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
added querying by relation's properties
This commit is contained in:
@@ -13,7 +13,7 @@ class AttributeExistsExp extends Expression {
|
||||
this.prefixMatch = prefixMatch;
|
||||
}
|
||||
|
||||
execute(noteSet) {
|
||||
execute(inputNoteSet) {
|
||||
const attrs = this.prefixMatch
|
||||
? noteCache.findAttributesWithPrefix(this.attributeType, this.attributeName)
|
||||
: noteCache.findAttributes(this.attributeType, this.attributeName);
|
||||
@@ -23,7 +23,7 @@ class AttributeExistsExp extends Expression {
|
||||
for (const attr of attrs) {
|
||||
const note = attr.note;
|
||||
|
||||
if (noteSet.hasNoteId(note.noteId)) {
|
||||
if (inputNoteSet.hasNoteId(note.noteId)) {
|
||||
if (attr.isInheritable) {
|
||||
resultNoteSet.addAll(note.subtreeNotesIncludingTemplated);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user