mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
fix search scripts, closes #4048
This commit is contained in:
@@ -10,7 +10,6 @@ const becca = require('../../../becca/becca');
|
||||
const beccaService = require('../../../becca/becca_service');
|
||||
const utils = require('../../utils');
|
||||
const log = require('../../log');
|
||||
const scriptService = require("../../script");
|
||||
const hoistedNoteService = require("../../hoisted_note");
|
||||
|
||||
function searchFromNote(note) {
|
||||
@@ -73,6 +72,7 @@ function searchFromRelation(note, relationName) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const scriptService = require("../../script"); // to avoid circular dependency
|
||||
const result = scriptService.executeNote(scriptNote, {originEntity: note});
|
||||
|
||||
if (!Array.isArray(result)) {
|
||||
|
||||
Reference in New Issue
Block a user