server-esm: Fix cyclical dependency

This commit is contained in:
Elian Doran
2024-07-19 00:34:37 +03:00
parent b6c5880484
commit 87fbd4bce8
2 changed files with 14 additions and 9 deletions

View File

@@ -12,6 +12,7 @@ import assets from "./routes/assets.js";
import routes from "./routes/routes.js";
import custom from "./routes/custom.js";
import error_handlers from "./routes/error_handlers.js";
import { startScheduledCleanup } from "./services/erase.js";
await import('./services/handlers');
await import('./becca/becca_loader');
@@ -61,6 +62,8 @@ await import('./services/consistency_checks');
await import('./services/scheduler');
startScheduledCleanup();
if (utils.isElectron()) {
(await import('@electron/remote/main')).initialize();
}