mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server-esm: Handle two more async imports
This commit is contained in:
parent
86808c07bd
commit
0a7828b9ae
@ -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();
|
||||
|
||||
/**
|
||||
|
@ -4,10 +4,6 @@ let shaca: Shaca;
|
||||
|
||||
class AbstractShacaEntity {
|
||||
get shaca(): Shaca {
|
||||
if (!shaca) {
|
||||
shaca = require('../shaca');
|
||||
}
|
||||
|
||||
return shaca;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user