server-esm: Handle two more async imports

This commit is contained in:
Elian Doran 2024-07-18 23:39:04 +03:00
parent 86808c07bd
commit 0a7828b9ae
No known key found for this signature in database
2 changed files with 1 additions and 6 deletions

View File

@ -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();
/**

View File

@ -4,10 +4,6 @@ let shaca: Shaca;
class AbstractShacaEntity {
get shaca(): Shaca {
if (!shaca) {
shaca = require('../shaca');
}
return shaca;
}
}