fix(server/test): yet another cyclic import issue due to becca_loader

This commit is contained in:
Elian Doran
2025-07-30 09:19:02 +03:00
parent 37a79aeeab
commit aefa2315b7
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,6 @@ import type { OptionRow } from "@triliumnext/commons";
import BNote from "../becca/entities/bnote.js";
import BBranch from "../becca/entities/bbranch.js";
import zipImportService from "./import/zip.js";
import becca_loader from "../becca/becca_loader.js";
import password from "./encryption/password.js";
import backup from "./backup.js";
import eventService from "./events.js";
@@ -83,6 +82,7 @@ async function createInitialDatabase(skipDemoDb?: boolean) {
// We have to import async since options init requires keyboard actions which require translations.
const optionsInitService = (await import("./options_init.js")).default;
const becca_loader = (await import("../becca/becca_loader.js")).default;
sql.transactional(() => {
log.info("Creating database schema ...");