mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 03:27:44 +08:00
fix search scripts, closes #4048
This commit is contained in:
parent
8095c77b91
commit
08398a1417
2 changed files with 3 additions and 3 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "trilium",
|
||||
"version": "0.60.2-beta",
|
||||
"version": "0.60.4",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "trilium",
|
||||
"version": "0.60.2-beta",
|
||||
"version": "0.60.4",
|
||||
"hasInstallScript": true,
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue