fix(build-docs): error due to becca not loading

This commit is contained in:
Elian Doran
2025-11-03 10:07:05 +02:00
parent 18810bb86f
commit 02404a5f5b
2 changed files with 6 additions and 8 deletions

View File

@@ -72,8 +72,7 @@ export async function importData(path: string) {
const importService = (await import("../../server/src/services/import/zip.js")).default;
const TaskContext = (await import("../../server/src/services/task_context.js")).default;
const context = new TaskContext("no-progress-reporting", "importNotes", null);
const beccaLoader = (await import("../../server/src/becca/becca_loader.js")).default;
const becca = beccaLoader.becca;
const becca = (await import("../../server/src/becca/becca.js")).default;
const rootNote = becca.getRoot();
if (!rootNote) {

View File

@@ -293,6 +293,5 @@ eventService.subscribeBeccaLoader(eventService.LEAVE_PROTECTED_SESSION, load);
export default {
load,
reload,
beccaLoaded,
becca
beccaLoaded
};