server: Fix the remainder of import issues

This commit is contained in:
Elian Doran
2024-07-24 20:33:35 +03:00
parent 42f0073ab6
commit 24af2e55dc
17 changed files with 22 additions and 24 deletions

View File

@@ -15,8 +15,8 @@ import error_handlers from "./routes/error_handlers.js";
import { startScheduledCleanup } from "./services/erase.js";
import sql_init from "./services/sql_init.js";
await import('./services/handlers');
await import('./becca/becca_loader');
await import('./services/handlers.js');
await import('./becca/becca_loader.js');
const app = express();
@@ -56,15 +56,15 @@ custom.register(app);
error_handlers.register(app);
// triggers sync timer
await import("./services/sync");
await import("./services/sync.js");
// triggers backup timer
await import('./services/backup');
await import('./services/backup.js');
// trigger consistency checks timer
await import('./services/consistency_checks');
await import('./services/consistency_checks.js');
await import('./services/scheduler');
await import('./services/scheduler.js');
startScheduledCleanup();