From 08398a1417bc9e09b6492eca6c22f32c865e2fff Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 22 Jun 2023 22:30:26 +0200 Subject: [PATCH] fix search scripts, closes #4048 --- package-lock.json | 4 ++-- src/services/search/services/search.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8d9b63fc7..6ba6312f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": { diff --git a/src/services/search/services/search.js b/src/services/search/services/search.js index 3e36040ab..cb565a252 100644 --- a/src/services/search/services/search.js +++ b/src/services/search/services/search.js @@ -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)) {