Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
server-esm: Handle two more async imports
Elian Doran0a7828b9ae7e
diff --git a/src/services/search/expressions/note_flat_text.ts b/src/services/search/expressions/note_flat_text.tsindex d433eb9912..3bd1010055 100644--- a/src/services/search/expressions/note_flat_text.ts+++ b/src/services/search/expressions/note_flat_text.ts@@ -7,6 +7,7 @@ import Expression from "./expression.js";import NoteSet from "../note_set.js";import becca from "../../../becca/becca.js";import utils from "../../utils.js";+import beccaService from "../../../becca/becca_service.js";class NoteFlatTextExp extends Expression {private tokens: string[];@@ -18,8 +19,6 @@ class NoteFlatTextExp extends Expression {}execute(inputNoteSet: NoteSet, executionContext: any, searchContext: SearchContext) {- // has deps on SQL which breaks unit test so needs to be dynamically required- const beccaService = require('../../../becca/becca_service');const resultNoteSet = new NoteSet();/**diff --git a/src/share/shaca/entities/abstract_shaca_entity.ts b/src/share/shaca/entities/abstract_shaca_entity.tsindex 6bf7c3d636..5ac1cbd5c8 100644--- a/src/share/shaca/entities/abstract_shaca_entity.ts+++ b/src/share/shaca/entities/abstract_shaca_entity.ts@@ -4,10 +4,6 @@ let shaca: Shaca;class AbstractShacaEntity {get shaca(): Shaca {- if (!shaca) {- shaca = require('../shaca');- }-return shaca;}}